XP is just a number | |
PerlMonks |
Re^5: If you believe in Lists in Scalar Context, Clap your Handsby chromatic (Archbishop) |
on Oct 25, 2008 at 10:21 UTC ( [id://719484]=note: print w/replies, xml ) | Need Help?? |
my @x = chomp <DATA>;
Bingo, @x It could be a three-element list, in list context, or it could be a scalar and two void expressions (which get optimized away), in scalar context. In void context, it could be nothing. Update: Reworded one sentence.
In Section
Meditations
|
|