Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-03-19 16:49 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (244 votes). Check out past polls.