in reply to Re^2: Number of lines from a system call
in thread Number of lines from a system call
which puts the number of lines output by the command into $num.my $num = () = qx{/usr/bin/lpstat -h $server -W not-completed};
Besides, why are you using Data::Dumper? This is nice for structured variables, but for plain strings it's more straightforward to write:
print "number is: $num\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Number of lines from a system call
by tcf03 (Deacon) on Mar 16, 2005 at 21:26 UTC |