Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Something Strange is Afoot Here

by extremely (Priest)
on Apr 07, 2001 at 00:52 UTC ( #70603=note: print w/ replies, xml ) Need Help??


in reply to Something Strange is Afoot Here
in thread sort mechanism

A LIST in SCALAR context returns its last item. An ARRAY in SCALAR context returns its count.

A LIST in ARRAY/LIST context returns a LIST. An ARRAY in ARRAY/LIST context returns a LIST.

That gets just about everyone at one time or another. It flat *BOGGLED* me for a while. Try this: perl -e 'print scalar( (1,2,3,4) ),$/'

--
$you = new YOU;
honk() if $you->love(perl)


Comment on Re: Something Strange is Afoot Here
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2015-07-01 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls