Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 avoiding work at the Monastery: (10)
As of 2015-08-04 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (68 votes), past polls