You do have a syntactical error in the script. One of the lines should read as follows:
eval { kill 0 * $_[0] };
Note the use of square brackets instead of parenthesis.
Also, you asked about why only $_[0] is evaluated. The sub tainted() is apparently intended to take a single scalar as its argument. That scalar is held (loosely speaking) as the first element of the special variable @_. You can read up on that in perlvar and perlsub.
Dave
In reply to Re: Please explain this tainting behaviour
by davido
in thread Please explain this tainting behaviour
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |