Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

map is your friend

by marcink (Monk)
on Jun 08, 2001 at 00:29 UTC ( [id://86731]=note: print w/replies, xml ) Need Help??


in reply to cgi.pm param method help

... and don't you forget it ;-)

You can load many form variables to an array like this:
my @array = map { $q->param($_) } ( 'Job_ID', 'Inv_CLLI' );

Or into a hash:
my %h = map { $_ => $q->param($_) } ( 'Job_ID', 'Inv_CLLI' );

Then print a set of values in one line using join:
print join ',', @array;


-mk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found