in reply to Question using system.
This is not what you want to use to capture the output from a command, for that you should use merely backticks or qx//, as described in "`STRING`" in perlop.
my @output = `getfilesdata file.txt`;
Update: This is also a FAQ in perlfaq8, Why can't I get the output of a command with system()?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question using system.
by pjotrik (Friar) on Jul 10, 2008 at 15:05 UTC | |
by ikegami (Patriarch) on Jul 10, 2008 at 18:28 UTC | |
by oko1 (Deacon) on Jul 10, 2008 at 20:36 UTC | |
by ikegami (Patriarch) on Jul 10, 2008 at 20:54 UTC | |
by oko1 (Deacon) on Jul 10, 2008 at 21:52 UTC | |
| |
|
Re^2: Question using system.
by rovf (Priest) on Jul 11, 2008 at 09:17 UTC |