Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Code to Open A File and Run Text From CMD Linkby kennethk (Abbot) |
on Aug 18, 2014 at 18:50 UTC ( [id://1097885]=note: print w/replies, xml ) | Need Help?? |
Relevant links:
Backticks are probably what you actually want. GotToBTru's point is that what you suggest is potentially very insecure. Why a file as opposed to coding it in the script in question? This is a little XY Problem-y. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|