Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: hash from sub directly into foreach loop

by Corion (Patriarch)
on Jun 30, 2006 at 08:32 UTC ( [id://558533]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Q:\>perl -MCGI -le "foreach( keys CGI::Vars() ) { print }"
    Type of arg 1 to keys must be hash (not subroutine entry) at -e line 1
    +, near ") ) "
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    Q:\>perl -MCGI -le "foreach( keys %{ CGI::Vars() }) { print }"
    
    Q:\>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-04-23 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found