CGI::F...::Perl(3pm)

πŸ“¦
version 0.01 Β· 2 versions
  • 0.01 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.01 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

CGI::FormBuilder::Source::Perl β€” bestie, this one reads your FormBuilder config straight out of files written in actual Perl syntax ✨


🌸 SYNOPSIS 🌸

my $form = CGI::FormBuilder->new(
    source => {
        type   => 'Perl',
        source => '/path/to/form_config.pl',
    }
);

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the vibe: this module lets you hand over the config for a CGI::FormBuilder object using nothing but Perl syntax. like, you write it in Perl, it reads it in Perl, everyone's happy πŸ’–

The contents of the config file get evaled, no cap β€” and whatever hash ref comes back out of that gets used as the config for the object. That's it. That's the whole trick. iconic behaviour honestly πŸ¦‹

ngl bestie, we're evaling a file here β€” so keep an eye on which file you're pointing it at πŸ‘€

πŸ‘‘ SEE ALSO πŸ‘‘

  • CGI::FormBuilder
  • CGI::FormBuilder::Source::File

πŸ’œ AUTHOR πŸ’œ

Copyright (c) 2008 Edmund von der Burg <evdb@ecclestoad.co.uk>. All Rights Reserved. 🫢

Based on the module CGI::FormBuilder::Source β€” giving credit where credit is due, periodt ✨

This module is free software; you may copy this under the terms of the GNU General Public License, or the Artistic License, copies of which should have accompanied your Perl kit. slay 🌈


and that's the whole page, bestie πŸŽ€ this was CGI::F...::Perl(3pm) from perl v5.36.0, dated 2022-11-27 β€” thanks for reading, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from