Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: perl script to remove part of double quoteby Marshall (Canon) |
on May 16, 2017 at 04:16 UTC ( [id://1190358]=note: print w/replies, xml ) | Need Help?? |
$_=~ s/"//g; but gives an error A string substitute operation like this will not yield an error except in the case where the string that is being processed is undefined. In addition, $_=~ is not needed as the substitute operator will work on $_ by default. Likely cause of your problem is that you are not setting the default $_ variable. Show your code.
In Section
Seekers of Perl Wisdom
|
|