in reply to add double quotes to a perl variable
Add chomp:
while (<$filehandle>) { chomp; ... print "$escaped_wquotes\n";
(Also, consider changing || die to or die -- it's a precedence issue...)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: add double quotes to a perl variable
by casperdaghost (Initiate) on Nov 15, 2013 at 20:40 UTC | |
by Kenosis (Priest) on Nov 15, 2013 at 20:49 UTC |
In Section
Seekers of Perl Wisdom