Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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: (5)
As of 2016-09-30 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.