MESSAGE
DATE | 2003-07-17 |
FROM | Ruben Safir Secretary NYLXS
|
SUBJECT | Re: [hangout] Perl, Pattern Matching and Delete
|
BTW - it sounds like a problem with the pattern
$ is a speacial char which needs to be \ and remember the variables are interpolated FIRST unless it's a string literal or a single quoted string
Ruben
On Thu, Jul 17, 2003 at 09:27:31AM -0400, joev_nylxs-at-pipeline.com wrote: > > here's my problem: > > I have a scalar variable that I need to strip out some stuff before it prints the html. I tried s/PATTERN// and this matches the pattern but does not remove it or replace it with "nothing." I've also tried s/PATTERN//d which if I understand this is suppose to delete the matched pattern if it was not replaced. That didn't work either. Is there an efficient way of doing this? > > thanks > Joe > ____________________________ > NYLXS: New Yorker Free Software Users Scene > Fair Use - > because it's either fair use or useless.... > NYLXS is a trademark of NYLXS, Inc
-- __________________________ Brooklyn Linux Solutions __________________________ DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com
http://www.mrbrklyn.com - Consulting http://www.inns.net <-- Happy Clients http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....
1-718-382-0585 ____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|