Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Perl Shift()->by GrandFather (Saint) |
on Dec 14, 2014 at 21:18 UTC ( [id://1110334]=note: print w/replies, xml ) | Need Help?? |
read_shx_header is a member function. When called the first parameter passed to a member function is self. So in that code shift retrieves self then calls the member function read_shx_shp_header passing 'shx' and the remaining parameters from the original call to read_shx_header. In other words, the code is inserting a parameter ('shx') into the front of the parameter list and chaining to another member function to get the actual work done.
Perl is the programming world's equivalent of English
In Section
Seekers of Perl Wisdom
|
|