Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

When is a function call not a function call

by dpuu (Chaplain)
on Mar 29, 2006 at 21:46 UTC ( [id://540065]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub uniq
    {
    ...
    
    print uniq 0,0,1,2;         # good: prints 0,1,2
    print sort uniq 0,0,1,2;    # bad:  prints 0,0,1,2
    
  2. or download this
    print sort uniq(0,0,1,2);
    
  3. or download this
    print sort grep {1} uniq 0,0,1,2;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://540065]
Approved by kutsu
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found