Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[PERL] What is this thing? [Beginner]

Name: Anonymous 2009-04-05 15:57

I am currently learning to program (Perl) and I've come across this:

$variable ||= 'stuff';

What does ||= mean?

Name: Anonymous 2009-04-05 20:38

woah.
i would guess that it means assign 'stuff' to $variable if $variable is false

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List