jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
This works great. But what if A::B001 does not exist ?package A ; sub new { my ($class, $type) = @_ ; "A:B$type"->new() ; } package A::B001 ; sub new { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multiple package in one file
by friedo (Prior) on Mar 12, 2006 at 11:16 UTC | |
by jeanluca (Deacon) on Mar 12, 2006 at 11:23 UTC | |
by friedo (Prior) on Mar 12, 2006 at 11:49 UTC | |
by jeanluca (Deacon) on Mar 12, 2006 at 12:17 UTC |