Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: How to pass two lists to a sub?

by archen (Pilgrim)
on Nov 05, 2004 at 23:18 UTC ( #405664=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to pass two lists to a sub?
in thread How to pass two lists to a sub?

The main reason I use shift over @_ is to easily set up defaults and quickly get some error checking out of the way.
Consider:
my $var1 = shift || 'default'; my $var2 = shift || return 0;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://405664]
help
Chatterbox?
[marto]: that is to say, to the best of my knowledge, they never did.
[marto]: they have a commercial product called perlapp
[mark4]: Do you h=know how I can get pp.exe? Is there a module I can install that includes this?
[marto]: I always found Strawberry Perl on windows to be a much better environment, made life much easier
[marto]: pp. install it like you would any other module
[marto]: it probably exists in one of the PPM repositories
[marto]: failing that see the README
[mark4]: I installed "PAR" from the ppm install window. pp.exe. did not show up.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2018-01-19 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?