dash2 has asked for the wisdom of the Perl Monks concerning the following question:
fails withimport $my_package qw/some_subroutine/;
Can't call method "import" on unblessed reference at sources/ZDisplay. +pm line 436.
How do I bless $my_package to refer to the package I want, which has the same name as the string contained in $my_package?
Much thanks.
dave hj~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: importing from variable packages
by davorg (Chancellor) on Mar 14, 2001 at 20:30 UTC | |
by dash2 (Hermit) on Mar 14, 2001 at 23:22 UTC | |
by tye (Sage) on Mar 15, 2001 at 03:53 UTC |