On 12-02-07 03:01 AM, Jeff Peng wrote:
"shift" means "shift @_" in Perl.

Inside a sub, shift without an argument will shift @_. Outside, it will shift @ARGV. It is always best to explicitly state the array:

sub header {
        my $month = shift @_;
        my $year  = shift @_;


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to