Change
tomy $index = shift || -1;
as 0 is a valid input for the name method to get the name of element 0my $index = shift; $index = -1 unless defined $index;
In reply to Re: A du(1) real-time sorter using Curses
by Paladin
in thread A du(1) real-time sorter using Curses
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |