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

Re: my $cache = undef if undef;

by Random_Walk (Parson)
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

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!


Comment on Re: my $cache = undef if undef;
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-04 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls