in reply to Use variable as a module during runtime.
my $string = <<'STRING'; package Foo; sub new { bless [] => shift } sub foo { print "foo!\n" } STRING eval $string; my $foo = Foo->new; $foo->foo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use variable as a module during runtime.
by yoda54 (Monk) on Oct 22, 2012 at 23:42 UTC |