Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Treating sub output as a hash

by ISAI student (Scribe)
on Jan 26, 2012 at 16:57 UTC ( [id://950166]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach $line ($self->getAllLines() {... }
    
  2. or download this
    liord@analog4 267 > perl -e 'sub a { %a = ( 1 , "ho" ); return %a} pri
    +nt keys a(), "\n"; '
    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.
    
  3. or download this
    liord@analog4 268 > perl -e 'sub a { %a = ( 1 , "ho" ); return %a} %t=
    + a() ; print keys %t , "\n"; '
    1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found