Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: The strangest use of unlink I know of

by w-ber (Hermit)
on Feb 28, 2008 at 17:19 UTC ( #670944=note: print w/ replies, xml ) Need Help??


in reply to Re: The strangest use of unlink I know of
in thread The strangest use of unlink I know of

The cute thing here is that the hash is initialized with a list of one item, a reference to an empty hash. So:

$ perl -e '%foo = {}; print %foo, "\n";' HASH(0x814dc30)

and (note the trailing comma, indicating an undefined value):

$ perl -e '%foo = {}; print join(",", %foo), "\n";' HASH(0x814dc30),

--
print "Just Another Perl Adept\n";


Comment on Re^2: The strangest use of unlink I know of
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-09-23 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls