in reply to script input from (command-linetext file) list

This is untested, but I've done something like the following:
unless (@ARGV) { open CONF, "ciscoconf" or die "We're really in trouble now: $!"; while (<CONF>) { chomp; push @ARGV, $_; } close CONF; }
Then you can just loop through @ARGV as you feel the need.

Granted, I was expecting a list of files to READ, and I wanted to use the magic <> construct, but something similar applies.

Replies are listed 'Best First'.
RE: Re: script input from (command-linetext file) list
by merlyn (Sage) on Sep 16, 2000 at 23:57 UTC