Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Regex String

by AnomalousMonk (Archbishop)
on Jul 04, 2014 at 14:27 UTC ( [id://1092306]=note: print w/replies, xml ) Need Help??


in reply to Regex String

Note also that the meaningless use of the  /g modifier in the validation statements causes even those to be incorrect:

c:\@Work\Perl>perl -wMstrict -le "my $dumbuf = '10'; ;; die 'Not a valid file' if $dumbuf !~ m/\d/sg; die 'File contains only zeros' if $dumbuf !~ m/[1-9]/sg; " File contains only zeros at -e line 1.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092306]
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-24 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found