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

Re: Please explain this tainting behaviour

by roju (Friar)
on Aug 05, 2004 at 16:32 UTC ( #380321=note: print w/replies, xml ) Need Help??


in reply to Please explain this tainting behaviour

perldoc -f kill claims that kill with a signal 0 does nothing. 0 * anything is 0, so if $_[0] is not tainted, nothing happens.

However, if $_[0] is tainted, then the code will die with "Insecure dependency in kill while running with -T switch at -e line 1, <STDIN> l ine 1.". So if $_[0] is tainted, $@ matches. If $_[0] is not tainted, no match.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2023-12-06 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (31 votes). Check out past polls.

    Notices?