Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-10-26 06:42 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (336 votes). Check out past polls.