etlamar has asked for the wisdom of the Perl Monks concerning the following question:
Hi, PerlMonks. I am seeking wisdom about the shift()-> idiom. What does this do? I understand how shift operates in the context of an array, but this form seems to either be dereferencing a hash/array ref or calling a method. Specifically, I found this form of shift in the source code to Geo::Shapefile, e.g.
Just curious if someone could shed some light on the use of shift in this context
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Shift()->
by tobyink (Canon) on Dec 14, 2014 at 21:20 UTC | |
by etlamar (Novice) on Dec 14, 2014 at 22:33 UTC | |
by etlamar (Novice) on Dec 15, 2014 at 02:45 UTC | |
|
Re: Perl Shift()->
by GrandFather (Saint) on Dec 14, 2014 at 21:18 UTC |