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

Re: Are prototypes evil?

by demerphq (Chancellor)
on Sep 03, 2002 at 11:19 UTC ( #194729=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo ($$$) {
      return "A: $_[0] B: $_[1] C: $_[2]\n";
    ...
    push @arg1,@arg2,@arg3;
    
    print foo(@arg1); # whatdoyoumeanthisdoesntwork!
    
  2. or download this
    sub funky(&$) {
      my $sub=shift;
    ...
    }
    
    funky {print $_} "yabbadabbadoo";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-10-02 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (56 votes), past polls