in reply to A du(1) real-time sorter using Curses
Small bug in the name method.
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 Section
Cool Uses for Perl