John W. Krahn wrote:
Gunnar Hjalmarsson wrote:
Use double-quotes instead, at least if you are on Windows.
perl -pi"orig_*" -e "s/(TPOS_IN[^;]+)/$1 := '0'/" <file_name>
If you do that the shell will interpret $1 as one of its variables.
Yes, a *nix shell will, so on *nix you need \$1
If the OP were on windows then he won't have been able to use single
quotes for the original.
If I understood it correctly, he wasn't...
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/