in reply to stringification
I think it is fairly secure: you can set variables but you can't execute anything.
Now equally, I don't always want to convert my variables to the appropriate string by hand. I want a quick method of changing $foo->{bar} to "foo__bar", so I can write
.. and do that for lots of variables.use CGI; print hidden( -name => struct_to_string($foo->{bar}, -value => $foo->{bar} );
Ysee?
update: Some guys suggested Data::Dumper or FreezeThaw. That does seem obvious, but these things are also mostly for storing the data in a variable, not the name of the variable - e.g. Data::Dumper dumps stuff as $VAR1, and FreezeThaw freezes the value but not its name! but maybe I should put all the values I want to change into a big hash and then reference into it with Data::Dumper.
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: stringification
by chromatic (Archbishop) on Feb 27, 2001 at 22:42 UTC | |
|
Re: Re: stringification
by merlyn (Sage) on Feb 27, 2001 at 22:56 UTC | |
by dash2 (Hermit) on Feb 28, 2001 at 17:25 UTC | |
by chipmunk (Parson) on Feb 28, 2001 at 20:28 UTC | |
by dash2 (Hermit) on Mar 01, 2001 at 14:21 UTC | |
by deprecated (Priest) on Feb 28, 2001 at 17:48 UTC |