in reply to Can't find string teminator

You have to escape the embedded double quotes on cmd.exe:
perl -ne "chomp; print \"$_\tO\n\""
and on PowerShell use single outer quotes:
perl -ne 'chomp; print \"$_\tO\n\"'
Yet in both cases the embedded quotes still need to be escaped (you would have thought it was not needed on PowerShell, wouldn't you?)

Replies are listed 'Best First'.
Re^2: Can't find string teminator
by deep.ocean (Initiate) on Apr 06, 2010 at 17:33 UTC
    Thank U