in reply to Re: What does $_ = qq~"$_"~ do?
in thread What does $_ = qq~"$_"~ do?
... the use of qq in the code you posted is unnecessary: $_ = '"$_"'; would have done the same thing.
Not so. The use of non-interpolating '...' quotes would produce only a literal "$_" output:
See also Quote and Quote-like Operators in perlop for a link to discussion of qq// that's closer to the mark.c:\@Work\Perl\monks>perl -wMstrict -le "for (qw(help! am trapped in noninterpolating quotes!)) { printf '\"$_\" '; } " "$_" "$_" "$_" "$_" "$_" "$_"
Update:
... a misguided attempt to manually escape values in a delimited file. ... it's more complicated that it might seem. ... use a module designed for handling delimited files, such as Text::CSV.Amen to that!
Give a man a fish: <%-{-{-{-<
|
|---|