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.
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
"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
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,