in reply to Please explain this tainting behaviour
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Please explain this tainting behaviour
by Anonymous Monk on Aug 05, 2004 at 19:14 UTC | |
by Aristotle (Chancellor) on Aug 05, 2004 at 21:08 UTC |