[Chicago-talk] Arguments

Randal L. Schwartz merlyn at stonehenge.com
Sun Jan 18 18:26:08 CST 2004

>>>>> "petemar1" == petemar1  <petemar1 at perlmonk.org> writes:

petemar1> On "juggling arguments:"
petemar1> When you have a...

petemar1>     sub doSomething(\$) {

Don't use prototypes!

petemar1>         doSomethingElse($_);    # Is this correct...
petemar1>         doSomethingElse($_[1]); # ...or is this correct?

Neither.  First argument is in $_[0].

petemar1>     } # end doSomething()

petemar1> ???

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

More information about the Chicago-talk mailing list