in reply to Re: passing of values by reffernence and taint mode?
in thread passing of values by reffernence and taint mode?
I get the following error#!/usr/bin/perl -w use strict; my $thingy = "No Change\n"; print $thingy; &change($thingy); print $thingy; sub change { my $in = shift; $$in = "Changed\n"; }
It seems like it is doing some sort of weird passing by value thing to me... but then I have no idea what I am doing (haven't you noticed...sigh) I read through perlref and it mentioned this problem existed but I could discern no answer also the 2 perl books I have on hand made similar statments with no answer I could find.Can't use string ("No Change") as a SCALAR ref while "strict refs" in +use at asdf.pl line 12
and I forgot to login, blast I guess today is not my day.......
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: passing of values by reffernence and taint mode?
by djantzen (Priest) on Jun 06, 2003 at 17:19 UTC | |
|
Re: Re: Re: passing of values by reffernence and taint mode?
by hardburn (Abbot) on Jun 06, 2003 at 17:22 UTC |