in reply to Re^2: exec, system, or backticks
in thread exec, system, or backticks
I'm not sure what you mean by evaluate. If you mean executed as perl code, how about eval ``:
$ perl -e 'eval `echo print 1+3`'; 4
Otherwise, system will do just fine:
$ perl -e 'system("echo bla > file");' $ cat file bla
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: exec, system, or backticks
by tc1364 (Beadle) on Oct 20, 2004 at 17:46 UTC | |
by kalle (Friar) on Oct 20, 2004 at 18:00 UTC | |
|
Re^4: exec, system, or backticks
by tc1364 (Beadle) on Oct 20, 2004 at 18:10 UTC | |
by fstat(pipe) (Scribe) on Oct 21, 2004 at 22:56 UTC |