Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Match number >= 0 and <1

by Taulmarill (Deacon)
on Jul 29, 2005 at 14:40 UTC ( [id://479423]=note: print w/replies, xml ) Need Help??


in reply to Re: Match number >= 0 and <1
in thread Match number >= 0 and <1

could you please give some value for $_num where my ($untainted) = ($_num =~ /^(.*)$/); has a different outcome than just my $untainted = $_num.

Replies are listed 'Best First'.
Re^3: Match number >= 0 and <1
by blazar (Canon) on Jul 29, 2005 at 14:52 UTC
    It is my understandment that it will have just the same value, but it will be... ehm... untainted! Which is the point the OP was trying to make: first blindily untaint, then do your checks whatever way you like most, i.e. do not try to do it all in one regex. I second his approach, BTW!
Re^3: Match number >= 0 and <1
by ikegami (Patriarch) on Jul 29, 2005 at 14:51 UTC
    All of them. The regexp removes the taint flag.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found