in reply to passing of values by reffernence and taint mode?
can scalars be passed by reffernence
Sure can.
resulting regular expression in the library untaint them?
You need to dereferance the value and untaint it:
sub untaint_ref { my $in = shift; $$in =~ /(.*)/; return $1; } my $val = 12345; $val = untaint_ref(\$val);
Obviously, you want a better untainting method than /(.*)/.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: passing of values by reffernence and taint mode?
by Anonymous Monk on Jun 06, 2003 at 17:11 UTC | |
by djantzen (Priest) on Jun 06, 2003 at 17:19 UTC | |
by hardburn (Abbot) on Jun 06, 2003 at 17:22 UTC |