Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Maybe i'm missing it, but they don't seem to be handled at all (which is a shortcoming)

    E:\>perl - 1=a 1=b 1=c 1=d
    use CGI qw[ param Vars ];
    use CGI::Untaint;
    my $u = CGI::Untaint->new( Vars() );
    print "$_\n" for $u->extract(-as_printable => 1);
    warn 1;
    print "$_\n" for param(1);
    __END__
    1 at - line 5.
    a
    b
    c
    d
  • I think Data::FormValidator is also a very strong contender in this problem space. It handles multiple values, something podmaster brought up in another post. It also integrates with CGI.pm, Regexp::Common and is generally very powerful and flexible.

    The current version includes a nice file upload validator as well.

    http://search.cpan.org/perldoc?Data::FormValidator
    http://mark.stosberg.com/d fv/

    disclaimer: I maintain Data::FormValidator