in reply to Perl Shift()->

If you don't specify an array for shift and pop to operate on, then they operate on @_ (or if used outside a sub definition, they operate on @ARGV).

# Which means that this... sub read_shx_header {shift()->read_shx_shp_header('shx',@_);} # Is a shortcut for writing out... sub read_shx_header { my $self = shift @_; $self->read_shx_shp_header('shx', @_); }

Replies are listed 'Best First'.
Re^2: Perl Shift()->
by etlamar (Novice) on Dec 14, 2014 at 22:33 UTC

    Ah!. Thanks for the insight.

Re^2: Perl Shift()->
by etlamar (Novice) on Dec 15, 2014 at 02:45 UTC

    Thanks much tobyink and GrandFather. The information is very helpful! Best regards.