|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: Perl Idioms Explained - my $count = () = /.../gby japhy (Canon) |
| on Feb 05, 2006 at 16:23 UTC ( [id://528099]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You misunderstood me. A list assignment in scalar context returns the number of elements. my $count = (LIST1) = (LIST2);The chunk in bold is the list assignment. That is put in scalar context by the my $count = ... part. Please see Re: Longest repeated string... for further clarification.
In Section
Meditations
|
|
||||||||||||||||||||||||