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

Re^2: Puzzler - filtering characters

by rashley (Scribe)
on Oct 22, 2007 at 18:45 UTC ( [id://646541]=note: print w/replies, xml ) Need Help??


in reply to Re: Puzzler - filtering characters
in thread Puzzler - filtering characters

I realize that. So it just used the ASCII value?

Replies are listed 'Best First'.
Re^3: Puzzler - filtering characters
by mwah (Hermit) on Oct 22, 2007 at 18:57 UTC

    You meant

    ... $text =~ s/[\000-\009]/ /g; ... }

    But it does something like

    ... $text =~ s/[\000-\000]/ /g; # does nothing $text =~ s/[9]/ /g; ...

    BTW, maybe it's sometimes much faster to use the tr/\000-\011/ / operator, but that may depend.

    Regards

    mwa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2026-01-15 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.