in reply to How to make Common Variables defined in Module available to Scripts

My approach to this same problem a year or so ago was to create a package "Common" that exported the common variables I use on a regular basis. Now all my perl scripts begin like
use strict; use warnings; use Common qw($common1, $common2, ..., $commonN);

This approach provided the opportunity to create (ie, learn how to) my first package and has been a very intuitive solution.
  • Comment on Re: How to make Common Variables defined in Module available to Scripts
  • Download Code

Replies are listed 'Best First'.
Re^2: How to make Common Variables defined in Module available to Scripts
by memnoch (Scribe) on Dec 06, 2007 at 16:35 UTC
    Nothing to read here.

    Thanks jrsimmon.....I'll probably do something like that!

    memnoch