[sf-perl] Anyone know why won't this work?

Michael Friedman frimicc at gmail.com
Wed Jul 24 10:19:25 PDT 2013


Try this last line (slices require @):

print "Second thru last: " . join(', ', @str[1..$#str]) . "\n";

-- Mike Friedman

On Jul 24, 2013, at 10:15 AM, Francisco Obispo <fobispo at isc.org> wrote:

> What do you expect the result of this line to be?
> 
> On Jul 24, 2013, at 10:12 AM, Richard Reina <gatorreina at gmail.com> wrote:
> 
>> print "Second thru last element: " . $str[1..$#str] . "\n";
> 
> Francisco Obispo 
> Director of Applications and Services - ISC
> email: fobispo at isc.org
> Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
> PGP KeyID = B38DB1BE
> 
> 
> 
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm



More information about the SanFrancisco-pm mailing list