in reply to Re^3: retrieve the value of a system call in a non blocking mode
in thread Do not display the command result in the console (updated)
What I should have put above was
NOTE: the misplaced paren in my earlier post.system("echo test > myfile.txt" or die $!); system("cat myfile.txt" or die $!);
--Chris
UPDATE: I should probably mention, that it might be more elegant to test the existence of the file myfile.txt before cattting it, rather than dieing. If interested. I'd post an example.Hey. I'm not completely useless. I can be used as a bad example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: retrieve the value of a system call in a non blocking mode
by young_monk_love_perl (Novice) on Dec 06, 2013 at 09:21 UTC |