Do you know where your variables are? | |
PerlMonks |
Re: System call in Windowsby krusty (Hermit) |
on Oct 24, 2008 at 19:33 UTC ( [id://719412]=note: print w/replies, xml ) | Need Help?? |
Try the following:
Then run the code like so:
Update: Thanks for the reference to the -pi flags. I understand now. The while loop is superfluous with the -p and the -i will edit the file given in place. Why does he need a system() function call around the whole thing? Won't that spawn another shell?
In Section
Seekers of Perl Wisdom
|
|