Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Re: removing C style comments from text files

by dominix (Deacon)
on Jan 07, 2004 at 08:30 UTC ( [id://319392]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: removing C style comments from text files
in thread removing C style comments from text files

you can use brace in place of traditional // in match
m{ } <=> m/ / and in searchreplace s{what}{replace}imsogxe <=> s/what/replace/imsogxe
in perlretut you have these examples. "/World/", "m!World!", and "m{World}" all represent the same thing. so the empty Brace means "replace with nothing"
--
dominix

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-19 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found