I'm trying to get all of the elements of an array except for the last one, but
returns an empty list. My fall back plan is to copy the array, pop off the last element and use that. The array ref comes from DBI and I want to re-use it afterwards which is why I'm not popping off the last element.@{$arrayref}[0..-2]
Alex / talexb / Toronto
Life is short: get busy!
In reply to Trying to slice off all array elements but the last one by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |