Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: sub argument passing? (TIMTOWTDI)

by AnomalousMonk (Abbot)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2015-01-26 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (189 votes), past polls