to fix, try:
Which gets the $p outside the single quotes. (untested)perl -pe 's%REPLACE_HERE%'$p'%g' abc.txt > $p
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
In reply to Re: Perl in Bash
by NetWallah
in thread Perl in Bash
by khiawyen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |