Matthew Sacks wrote:
I see many examples in the camel book where a
subroutine takes one argument and the one argument is
an array ref.

my (foo_ref) = shift;

There is however at least one example where it is

my foo_ref = shift;

I am trying to figure out if this matters.  What would
shift care about list context?   shift should still
yield  one thing an array ref???    See page 356 in
the camel book, and page 224.  (I think).
[EMAIL PROTECTED]

shift() returns a scalar in either list context or scalar context so both statements do the same thing.



John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to