Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: number array with space

by AnomalousMonk (Archbishop)
on Jun 20, 2013 at 12:48 UTC ( [id://1039969]=note: print w/replies, xml ) Need Help??


in reply to Re: number array with space
in thread number array with space

... the ... regex will fail for an element value of say "222test001" ... it would fire the function ...

But the regex doesn't seem to match that string at all, so how would it fire the function?. (Have you been naughty and updated your post without making a note of the change?)

>perl -wMstrict -le "my $val = '222test001'; print $val =~ /^\d+$/ ? 'fire' : 'no match'; " no match

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2026-04-20 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.