Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: "Correct" program style questions

by Kanji (Parson)
on Oct 23, 2002 at 03:05 UTC ( #207272=note: print w/ replies, xml ) Need Help??


in reply to "Correct" program style questions

Would the program be less "correct" if I switched [:alpha:] to [a-zA-Z]? Or would it be better if I used \p{IsAlpha}? What are the pros and cons of using traditional regex characters versus POSIX or Unicode?

I don't think it would be any less correct, but one of the pros of traditional character classes is compatability with older versions of Perl.

Whether that's enough a pro to warrant change depends on how prevalent 5.005_03 is in your circles, but perhaps a require 5.006; would be in order if it isn't?

    --k.



Comment on Re: "Correct" program style questions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-08-01 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls