On Thursday, Nov 13, 2003, at 15:25 US/Pacific, Dan Anderson wrote:
Is there a way to "peek" at the top or bottom of an array? Sort of like
pop or shift but without needing to insert the value back into the
array?
I suppose I could do something like:
my $check_me = pop @array; push @array, $check_me;
would you feel safer with
my $tail = $array[$#array];
since $#array will return the last entry in the array and you can call it out. The first entry of course is at $array[0];
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]