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

sure, but you have to read simple module tutorial first
  • Comment on Re: dynamicallyloading a .pl file content / load a .pl file by condition?

Replies are listed 'Best First'.
Re^2: dynamicallyloading a .pl file content / load a .pl file by condition?
by Anonymous Monk on Mar 29, 2008 at 08:44 UTC
    If I want to avoid using modulus, any idea?
      if (whatever) { eval "use Foo;" } else { eval "use Bar;" }
      If I want to avoid using modulus

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