--- Robert Citek <[EMAIL PROTECTED]> wrote: > Is there a short-cut way in perl to slice an array with the range > (..) operator? > perl -e '@f=(1..10); print @f[1..-2], "\n"; ' > but this doesn't work.
the range op is short-circuiting on the negative. try @f[1..$#f-1] __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]