Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Testing a string for a range of characters

by BoredByPolitics (Scribe)
on Jan 24, 2001 at 20:25 UTC ( #54017=note: print w/replies, xml ) Need Help??


in reply to Re: Testing a string for a range of characters
in thread Testing a string for a range of characters

The test will be repeated possibly thousands of times, as records are read in from an array, but I agree, if it was only going to be a one off, then I'd probably have left it as a regex.

Pete

  • Comment on Re: Re: Testing a string for a range of characters

Replies are listed 'Best First'.
Re: Re: Re: Testing a string for a range of characters
by Fastolfe (Vicar) on Jan 24, 2001 at 20:31 UTC
    If you're reading these in from an array, I wonder if a test like this might be faster:
    my @array = get_block_of_data; data_is_bad if join("", @array) =~ /[^A-Z]/;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-01-25 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?