But seriously, isn't this what objects are for ?:)package Zelda; our $type = "prince"; package Mario; our $type = "hero"; package Kupa; our $type = "villan"; package main; foreach my $pkg (qw/Zelda Mario Kupa/) { print ${$pkg.'::type'}, "\n"; } __END__
In reply to Re: How do I interpolate package name in a fully qualified name?
by Anonymous Monk
in thread How do I interpolate package name in a fully qualified name?
by AGhoulDoingPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |