Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: my $cache = undef if undef;

by Random_Walk (Prior)
on Jan 26, 2005 at 16:56 UTC ( #425278=note: print w/replies, xml ) Need Help??

in reply to my $cache = undef if undef;

Nothing !

I stand very much corrected, this is a cunning (mis?)feature, see Aristotle's reply below and chromatic's++ explaination

$ perl -le'print "something" if undef' $ $ # A tumbleweed blows across my vacant screen $ perl -le 'if (undef) {print "something"} else {print "nothing"}' nothing $

Perhaps it was a bizarre way of "commenting out" the undefing of $cache.

Back when I worked PC support my boss ordered some parallel printer cable 'gender benders. He got 20 Male-Male, 20 Female-Female and 20 Female-Male just 'cos they were in the catalogue. I stored them under 7mm extension cable. This line somehow reminds me of that.

I think Tanktalus has hit the nail on the head below, it is perhaps an attempt to be more obvious than just my $cache but a fairly odd one


Pereant, qui ante nos nostra dixerunt!

Log In?

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

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

    Results (292 votes). Check out past polls.