in reply to How to sort output?

(Oh yea, and the "if" that's checking on the unlink to get rid of the file isn't working, either - the file unlinks fine but I always get the message. *grin*)
Usually, if a Perl feature isn't working as I expect, my first port of call will be Perl's extensive documentation. Try typing perldoc -f unlink in your shell, or from a browser here.

From unlink:

Deletes a list of files. Returns the number of files successfully deleted

Replies are listed 'Best First'.
Re^2: How to sort output?
by dguntner (Novice) on Jul 22, 2007 at 08:08 UTC
    Oh, foo. I totally read the example (that I found in an online tutorial site) backwards. Oops. :-) Thanks for straightening me out on that, it's working now (well, it worked before - it's just not giving me a false failure message anymore *grin*).

    --Dave