There's more than one way to do things | |
PerlMonks |
Re: print to file not workingby ikegami (Patriarch) |
on Apr 20, 2009 at 17:25 UTC ( [id://758762]=note: print w/replies, xml ) | Need Help?? |
Then maybe you should turn on warnings! You're reading from a file you've opened for writing. open(CODE, "c:\\...\\killp.pl") doesn't execute that file, it opens it for reading. The whole of run_code attempts to replicate do or system.
In Section
Seekers of Perl Wisdom
|
|