in reply to Re: Re: Re: CGI params
in thread CGI params

Hrmm, mine looks very similar.
use strict; use CGI qw/:standard/; use DBI; use Mail::Sendmail; use MIME::Lite; my $q = CGI::new(); my %params = map {$_ => param('$_')} param(); print '-->' . $params{'listname'}. '<--' . "\n";
I am running this on a debian box however you seem to be using windows, i wonder if this is contributing as our code looks very similar.

Neil Archibald
- /dev/IT -

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: CGI params
by dws (Chancellor) on Sep 09, 2003 at 08:11 UTC
    I am running this on a debian box however you seem to be using windows, i wonder if this is contributing as our code looks very similar.

    I suspect that it has more to do with those single quotes. They're not the same as double quotes (think interpolation, or lack thereof). In this situation, single quotes do the wrong thing, and double quotes aren't needed.

Re: Re: Re: Re: Re: CGI params
by devslashneil (Friar) on Sep 09, 2003 at 08:12 UTC
    Sorry i misread, changing param('$_') to ($_) fixed the problem :) thanks heaps for your input

    Neil Archibald
    - /dev/IT -