Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perl script to remove part of double quote

by kcott (Archbishop)
on May 15, 2017 at 05:39 UTC ( [id://1190291]=note: print w/replies, xml ) Need Help??


in reply to perl script to remove part of double quote

G'day sud100,

Welcome to the Monastery.

In the absence of more complete information, transliteration (see "perlop: Quote-Like Operators") is likely to be the fastest, and most straightforward, way to achive this.

$ perl -E 'my $x = q{asd" efg"}; say $x; $x =~ y/"//d; say $x' asd" efg" asd efg

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found