Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Anonymous Monk
on Feb 28, 2008 at 16:56 UTC ( #670935=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

Look more carefully. %foo is not empty. It was initialized with curly brackets -- almost ALWAYS a sign that the author made a mistake. Not a very humorous answer, but Wayne Jarvis is not paid to be funny.

:|

Still however -- the code indeed is a no op in terms of "useful" work. One needs to explicitly require %foo as a scalar:
unlink scalar %foo;


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-11-27 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (183 votes), past polls