in reply to Re^2: multiple package in one file
in thread multiple packages in one file

You'll need to use curlies to tell Perl that you want a variable as part of the package name.

Try %{ 'A::B' . $type . '::' }

Remember to include the extra '::' on the end.

Replies are listed 'Best First'.
Re^4: multiple package in one file
by jeanluca (Deacon) on Mar 12, 2006 at 12:17 UTC
    Thnx!!!!