in reply to cgi-lib.pl question

Well, you'd need to be running this code without use strict or -w because it goes against all kinds of best practices (symbolic refs, undeclared vars), but you could do someting like this...

foreach (keys %in) { $$_ = in{$_}; }

But I think that all in all that is a very bad idea.

If you were using CGI.pm instead of cgi-lib.pl you could use the import_names function which does something similar.

Of course, if it's just the amount of typing that you're concerned about you can save two keystrokes on each hash element by typing $in{NAME} instead of $in{'NAME'}.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>