in reply to Using arbitrary packages
but $foo has to already be set at compile time, e.g.use if 1, $foo;
but even that IMO is more clearly written asmy $foo; BEGIN { $foo = $ENV{SERIALIZER} || "Storable" } use if 1, $foo;
What exactly are you trying to accomplish? There's probably a better way.BEGIN { eval "use ".($ENV{SERIALIZER}||"Storable"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using arbitrary packages
by Sprad (Hermit) on Jul 12, 2004 at 22:14 UTC | |
by fergal (Chaplain) on Jul 12, 2004 at 22:43 UTC | |
|
Re^2: Using arbitrary packages
by PodMaster (Abbot) on Jul 13, 2004 at 05:16 UTC |