swiftone has asked for the wisdom of the Perl Monks concerning the following question:
This psuedo-code has many problems though, and I'm a long way from making it reality. Can anyone help me figure this out?$name='Foo'; &populate($name); #If someone figures out an OO method of this, that' +s fine too #package Foo now has the default values $::oldpackage=$__PACKAGE__; package $name; #Change it from the defaults $bar='baz'; package $::oldpackage; #continue on with the program, now that Foo has all the data I want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Variable Package Names?
by chromatic (Archbishop) on Aug 14, 2000 at 21:10 UTC | |
|
Re: Variable Package Names?
by merlyn (Sage) on Aug 14, 2000 at 20:54 UTC | |
by swiftone (Curate) on Aug 14, 2000 at 21:05 UTC | |
|
Re: Variable Package Names?
by Hot Pastrami (Monk) on Aug 14, 2000 at 23:06 UTC |