>>>>> "JM" == Jeremy Muhlich <[EMAIL PROTECTED]> writes:
JM> One kind of nasty option is to use string eval:
JM> $varname = "\$${_}_type";
JM> eval "$varname = <something>";
JM> There are technical caveats and perhaps moral issues with this approach,
JM> but it works.
that is like telling a kid not to shoot their eye out with a bb gun and
handing them an assault rifle to play with!
a rule i always teach is that symrefs and string eval are not to be used
until you learn when not to use them. they are useful but only as a last
resort solution or where the benefits far outweigh the dangers. this is
not even close to that as it is just a basic data structure issue.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm