[Chicago-talk] Arguments
petemar1
petemar1 at perlmonk.org
Sat Jan 24 10:45:07 CST 2004
Is this in "The Elements of Perl Style?" :)
-----Original Message-----
From: chicago-talk-bounces at mail.pm.org
[mailto:chicago-talk-bounces at mail.pm.org]On Behalf Of Randal L. Schwartz
Sent: Sunday, January 18, 2004 7:13 PM
To: Chicago.pm chatter
Subject: Re: [Chicago-talk] Arguments
>>>>> "petemar1" == petemar1 <petemar1 at perlmonk.org> writes:
petemar1> Why not? What should I use?
Nothing.
sub foo {
my $first_arg = shift; # comment about first arg
my $second_arg = shift; # comment about second arg
my @remaining = @_; # comment about remaining
....
}
--
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!
_______________________________________________
Chicago-talk mailing list
Chicago-talk at mail.pm.org
http://mail.pm.org/mailman/listinfo/chicago-talk
More information about the Chicago-talk
mailing list