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.