|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^3: handle special character in filenameby aitap (Chaplain) |
| on Oct 17, 2012 at 15:03 UTC ( #999557=note: print w/ replies, xml ) | Need Help?? |
|
system("sed","-i","s/$org/$rep/g", $file); By the way, you can use Tie::File and \Q..\E constructs inside native Perl regexps (instead of sed), thus not having to run sed (which costs you another fork() and some rename operations) and being able to replace any strings containing any special sharacters.
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||