|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: perl one liner to replace matching string (updated x2)by haukex (Archbishop) |
| on Jun 10, 2018 at 10:18 UTC ( [id://1216313]=note: print w/replies, xml ) | Need Help?? |
|
It is extremely rare that you need to call another perl from inside a Perl script! I'm going to guess that you're doing it for the effect of the -i flag? You can get that feature from inside Perl using $^I:
Update: qx// is often problematic anyway! Update 2: Fixed this potential issue in the above example code.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||