Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670935]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-12-10 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (160 votes). Check out past polls.