Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Challenge - Creative Way To Detect Alpha Characters

by BrowserUk (Patriarch)
on Sep 14, 2004 at 21:50 UTC ( [id://390989]=note: print w/replies, xml ) Need Help??


in reply to Re: Challenge - Creative Way To Detect Alpha Characters
in thread Challenge - Creative Way To Detect Alpha Characters

You'd then have to scan the list twice. Once to convert, once to compare.

The original (and best) solution did 3 passes by both upping and lowing the string and comparing, but all three passes where in C rather than perl, so fast.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^3: Challenge - Creative Way To Detect Alpha Characters
by parv (Parson) on Sep 14, 2004 at 22:05 UTC

    (I removed my comment about the first statement of BrowserUK about which i am still thinking.)

    Yes, you are quite right, BrowserUK, on the point of original solution being the best; it is simple, short, and to the point.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found