Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Reference curiosity?

by borisz (Canon)
on Apr 23, 2006 at 17:31 UTC ( [id://545137]=note: print w/replies, xml ) Need Help??


in reply to Reference curiosity?

your first version 'print 1 2 3' from the global hash hash. It works also fine without my ($hash)=@_; .
the second one can not print 1 2 3, since it want s to print from a hash, but your hash is a hashref.
use strict; use warnings; # ;-)
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found