Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: perl script to remove part of double quote

by Marshall (Canon)
on May 16, 2017 at 04:16 UTC ( [id://1190358]=note: print w/replies, xml ) Need Help??


in reply to perl script to remove part of double quote

$_=~ 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found