my (fooref) = shift;



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).
matthewsacks1415@xxxxxxxxx


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.



Relevant Pages

  • RE: File Copy
    ... left argument in overloaded package ... 62 my $from = shift; ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (perl.beginners)
  • Re: Multiple Inheritance: mixed base class refs (hash, array)
    ... I've written (an event handling class, that uses the moral HASH style class container, for use with bless.) ... I noticed that IO:Select actually uses an ARRAY ref, rather than a HASH ref, to contain itself. ... my $this = shift; ...
    (comp.lang.perl.misc)
  • Re: my (fooref) = shift;
    ... Matthew Sacks wrote: ... subroutine takes one argument and the one argument is an array ref. ... shift care about list context? ...
    (perl.beginners)