in reply to Perl System('') question
The advice given by the other folks here is good, but I'd like to suggest using an alternate operator provided by Perl for just this purpose. Backticks are easily misread as single-quotes, so using this improves readability:
my $output = qx#/usr/bin/eject -n#;
See perldoc perlop for more info about 'qx'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl System('') question
by spmlingam (Scribe) on Nov 29, 2008 at 04:42 UTC | |
by parv (Parson) on Nov 29, 2008 at 05:57 UTC |