Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: CGI params

by devslashneil (Friar)
on Sep 09, 2003 at 08:05 UTC ( [id://289959]=note: print w/replies, xml ) Need Help??


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 -

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://289959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-03-28 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found