On 11/8/07, howa <[EMAIL PROTECTED]> wrote: > 2. perl -pe 's/(?<=[^\\])\\\'//g' test.txt (Note a single quote is > inserted in the middle)
Check your shell's documentation on how to quote command line arguments. If you need to find out what, exactly, a command-line argument says by the time it gets to perl, you can easily examine @ARGV in the debugger, with the x command. I generally type something like this: $ perl -debug 'odd\\\'string Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): bug DB<1> x [EMAIL PROTECTED] 0 ARRAY(0x180b4e8) 0 'odd\\\\\\string' >From this, I can see that @ARGV got a single argument containing three backslashes. (The output shows them in Perl syntax, thus two backslashes for each one in the true argument.) If you still have trouble getting your shell to do what you want, a support group specifically for your operating system should be helpful. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/