-----Original Message----- >From: oryann9 <[EMAIL PROTECTED]> >Sent: Aug 9, 2007 4:43 AM >To: Perl List <beginners@perl.org> >Subject: slices
> >$ perl -le 'use Data::Dumper; @c = (0,1)[2]; print >Dumper([EMAIL PROTECTED]);' >$VAR1 = []; > > This is because the expression of '(0,1)[2]' would return undefined value since the list (0,1) doesn't have No.3 element. -- Jeff Pang <[EMAIL PROTECTED]> http://home.arcor.de/jeffpang/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/