Артём Варнайский wrote:
>  Hello again!
> Prompt me please elegant and 'vanilla' way to taint some scalar. My vars
> lost their taint when I just split external string with regexp on
> param/val pairs, without checking them for correctness.
> And What do you say about this:
> $foo.=substr($ENV{PATH},0,0); #$foo tainted if $ENV{PATH} is tainted
> Thank, and sorry for my runglish :)
>
>
>
I have not used it myself, but the Taint::Util module looks like it does
just what you want.
http://search.cpan.org/~avar/Taint-Util-0.08/Util.pm

-- 
Ron Bergin



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to