Re: extracting params to a hash

2002-03-05 Thread Jeff 'japhy' Pinyan
field names. But why not just do: use CGI 'Vars'; my %in = Vars(); # or, for a hash reference instead # my $in = Vars(); -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.

Re: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Jeff 'japhy' Pinyan
On , Bernd Lach said: >#!C:/Perl/bin/perl.exe -w >use diagnostics; >use strict; You're using strict and -w, good. >use CGI; > >$browser = $ENV{'HTTP_USER_AGENT'}; Oops. You didn't declare $browser. my $browser = $ENV{HTTP_USER_AGENT}; -- Jef

Re: sendmail error

2001-12-13 Thread Jeff 'japhy' Pinyan
"my $data = for (1..21)" > ); I don't think Message's value is what you'd like. You can't place Perl code in a double-quoted string and expect it to evaluate. Perhaps: Message => join('', map { scalar } 1 .. 21) -- Jeff

Re: [CGI] Interesting Chop question.

2001-12-12 Thread Jeff 'japhy' Pinyan
off letters sometimes... That's why chomp() exists. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning,