develooper Front page | perl.fwp | Postings from February 2005

Re: "Secret" operators

Thread Previous | Thread Next
Bernie Cosell
February 1, 2005 10:20
Re: "Secret" operators
Message ID:
On 1 Feb 2005 at 12:36, Ronald J Kimball wrote:

> ... A list assignment in scalar context
> returns the number of elements on the right-hand side of the assignment.

Which is an odd inconsistency, because in list context a list assignment 
returns the left-hand-side-list, so you might guess that in scalar 
context it'd return the number of elements in the lhs list...


Bernie Cosell                     Fantasy Farm Fibers     Pearisburg, VA
    -->  Too many people, too few sheep  <--       

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About