in reply to Defining a package inside my script?

I know your problem is solved, but generally we use classes(oops) for re-usability and also for so many other features, so it is not generally good to define the packages inside the single perl script, which would make those packages not re-usable. Better have it in the separate file(.pm) and access it from your main script to utilize the power of oops.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
  • Comment on Re: Defining a package inside my script?