Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: A du(1) real-time sorter using Curses

by Paladin (Priest)
on Sep 03, 2004 at 15:42 UTC ( #388314=note: print w/ replies, xml ) Need Help??


in reply to A du(1) real-time sorter using Curses

Small bug in the name method.

Change

my $index = shift || -1;
to
my $index = shift; $index = -1 unless defined $index;
as 0 is a valid input for the name method to get the name of element 0


Comment on Re: A du(1) real-time sorter using Curses
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://388314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2015-07-07 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls