"be consistent" | |
PerlMonks |
Re: Re: Re: Listing filesby snapdragon (Monk) |
on Feb 13, 2002 at 12:36 UTC ( [id://145146]=note: print w/replies, xml ) | Need Help?? |
The shift in the code is there to return the directory that is passed in the get_month_year. In the get_month_year sub the parent directory is needed - the shift operator does this by shifting the first value of the array off and returning it (the parent directory 'c:' in this case).
You can find more info on the shift node.
In Section
Seekers of Perl Wisdom
|
|