At 3:19 PM +0800 2/7/12, Jeff Peng wrote:
òƒ 2012-2-7 15:07, lina é ì¼:
        my $month = shift ;
        my $year = shift ;  ######## here after shift the $year becomes null?
http://perldoc.perl.org/functions/shift.html


after shift the @_ becomes null. $year is 2007.

To be precise, @_ becomes empty, not null.

--
Jim Gibson
j...@gibson.org

--
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