in reply to File to take @ARGS or "<" Redirect

You've scoped @node_numbers local to the blocks of the if. The @node_numbers you're using outside those blocks is not the same variable (it's a global -- you should use strict;).

Once you fix that, if you run it from the command line, it's going to try to get data from STDIN, which will generally be the keyboard. You'll get the error-out if you redirect from /dev/null.


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: File to take @ARGS or "<" Redirect
by awohld (Hermit) on Apr 20, 2005 at 19:39 UTC
    @node_numbers should be global. So I'll do use strict