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 Jim@Gibson.orgThread Previous | Thread Next