I suggest you crack open CGI.pm and check to see if Vars is in there, it'd be listed under %EXPORTED_TAGS as':cgi-lib' => [qw/ReadParse PrintHeader HtmlTop HtmlBot SplitParam Vars/], and it would look something like (from 2.752)#!/usr/bin/perl -w use strict; use CGI; print "Version: $CGI::VERSION\n", "Revision: $CGI::revision\n";
ar0n says you don't really need it, and that you can use my %form = map { $_ => $q->param($_) } @labels; to replicate the functionality, but be aware that Vars is significantly faster than the map method.# These are some tie() interfaces for compatibility # with Steve Brenner's cgi-lib.pl routines 'Vars' => <<'END_OF_FUNC', sub Vars { my $q = shift; my %in; tie(%in,CGI,$q); return %in if wantarray; return \%in; } END_OF_FUNC
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"
In reply to (crazyinsomniac) Re: Error when script is on new IIs server from %FORM=$q-Vars
by crazyinsomniac
in thread Error when script is on new IIs server from %FORM=$q-Vars
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |