Welcome to the Monastery | |
PerlMonks |
Please explain the '$x ||' idiomby goonfest (Sexton) |
on Jan 18, 2005 at 17:33 UTC ( [id://423104]=perlquestion: print w/replies, xml ) | Need Help?? |
goonfest has asked for the wisdom of the Perl Monks concerning the following question:
What does the following line of code do? I've never seen it before but am now debugging somebody else's program that has this. Thanks.
$x = $x ||5;
"Be proud, be a Goon"
Retitled by davido.
Back to
Seekers of Perl Wisdom
|
|