News for hackers. Stuff that matters.
Re:Perl 5.20.0 released by peteretep on Tuesday May 27, 2014 @06:08AM (#7803707)

    > these are going to be littered throughout most perl code 
    > - its definitely in a lot of my code
Interesting; I've been programming Perl for almost 20 years, and they're not in any of mine!
Re:Perl 5.20.0 released by VLM on Tuesday May 27, 2014 @08:23AM (#7804067)
I read a lot of files of very raw textual data and if the parsed data tastes good, it gets stored in a DB for analysis, if not, kicked out as error.

Its going to be fun watching people who do used the POSIX functions try alternatives. /[A-Za-z]/, I'd like you to meet umlat-u. The POSIX depended on the locale of the installed software which, assuming that's a feature and not a bug (usually its a bug) it'll be interesting to watch people reimplement that "functionality".

This is a fun 13 year old place to start WRT "simple" data verification, not because it exhaustively covers everything, but its watching a noob start from the beginning and hit about ten different roadblocks. There are plenty more of course.

http://www.perlmonks.org/?node_id=66320

Re:Perl 5.20.0 released by clscott on Tuesday May 27, 2014 @11:22AM (#7804900)
There's a regex character class for that

Alphabetical only? $value =~ /[[:alpha:]]/

Ascii only? $value =~ /[[:ascii:]]/

http://perldoc.perl.org/perlrecharclass.html#Bracketed-Chara...