in reply to Re: Several stupid questions about subs
in thread Several stupid questions about subs
my @digitsOfPi = (3,1,4,1,5,9,2,6,5,3,5,9,'etc'); frobnicate('foo', 'bar', @digitsOfPi); sub frobnicate { my $fooString = shift; my $barString = shift @_; #more typing my @remainder = @_; print $remainder[0] == 3 ? 'yum' :'eew'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Several stupid questions about subs
by ikegami (Patriarch) on Apr 13, 2011 at 17:48 UTC | |
by fidesachates (Monk) on Apr 13, 2011 at 17:56 UTC | |
by Anonymous Monk on Apr 13, 2011 at 18:56 UTC |