Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: User-Defined Sub, Passing a Single Argument?

by mmartin (Monk)
on Oct 15, 2014 at 17:55 UTC ( [id://1103947]=note: print w/replies, xml ) Need Help??


in reply to User-Defined Sub, Passing a Single Argument?

Hey Kenneth and duelafn, thanks for the replies!

Yea, sorry about that I did have parenthesis around that one example, I just forgot to include them when I wrote out
the example. And I did accidentally use it without them when I was testing and got a '1', since I only passed 1 Arg...

Ok, well its good to know that it's more of a personal taste sort of thing, so thanks for the info. It is much
appreciated... Thanks!

I kind of like the 'shift' method myself... Easy to remember.

Thanks Again,
Matt
  • Comment on Re: User-Defined Sub, Passing a Single Argument?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-19 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found