Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: sub argument passing? (TIMTOWTDI)

by AnomalousMonk (Chancellor)
on Sep 17, 2012 at 21:04 UTC ( #994103=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #prototyped to explicitly state acceptable arguments
    
    ...
    
    #gives error if too few or too many arguments
    #(or arguements of wrong type)
    
  2. or download this
    >perl -wMstrict -le
    "my @ra = (99 .. 199);
    ...
     print S 1, 2, @ra;
    "
    104
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994103]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-08-23 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (345 votes). Check out past polls.

    Notices?