in reply to Re: How to replace '$' in strings
in thread How to replace '$' in strings
perl -e "print $ARGV[0]=~s{\$}{\\\$}r" a$dollar a\$dollar or perl -e "print $ARGV[0]=~s{([\$\@\%])}{\\\1}gr" a$dollar@rray%%hashes a\$dollar\@rray\%\%hashes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to replace '$' in strings
by Athanasius (Archbishop) on Dec 14, 2015 at 13:18 UTC | |
by soonix (Chancellor) on Dec 15, 2015 at 09:33 UTC |