The stupid question is the question not asked | |
PerlMonks |
Re: Perl Idioms Explained - my $count = () = /.../gby santonegro (Scribe) |
on Feb 05, 2006 at 20:31 UTC ( [id://528095]=note: print w/replies, xml ) | Need Help?? |
a list assignment in scalar context returns the number of elements on the right-hand side of the list assignmentI don't agree with that. An array assignment does this. A list assignment returns the last element. To wit:
In Section
Meditations
|
|