in reply to Re: dynamicallyloading a .pl file content / load a .pl file by condition?
in thread dynamicallyloading a .pl file content / load a .pl file by condition?

If I want to avoid using modulus, any idea?
  • Comment on Re^2: dynamicallyloading a .pl file content / load a .pl file by condition?

Replies are listed 'Best First'.
Re^3: dynamicallyloading a .pl file content / load a .pl file by condition?
by cuervo (Initiate) on Mar 29, 2008 at 11:56 UTC
    if (whatever) { eval "use Foo;" } else { eval "use Bar;" }
Re^3: dynamicallyloading a .pl file content / load a .pl file by condition?
by almut (Canon) on Mar 29, 2008 at 12:28 UTC
    If I want to avoid using modulus

    do — but sooner or later you'll realise that using modules is the way to go.