Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Testing a string for a range of characters

by BoredByPolitics (Scribe)
on Jan 24, 2001 at 19:53 UTC ( [id://54003]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
                        if (exists $tran_types{$test_char}) {} else {}
                       },
    });
    
  2. or download this
    Benchmark: timing 10000000 iterations of comp, exist, regex...
          comp: 56 wallclock secs (55.39 usr +  0.00 sys = 55.39 CPU)
         exist: 50 wallclock secs (49.34 usr +  0.00 sys = 49.34 CPU)
         regex: 79 wallclock secs (79.32 usr +  0.00 sys = 79.32 CPU)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found