>>>>> "AS" == Aaron Sherman <[EMAIL PROTECTED]> writes:


  AS> use Getopt::Long;
  AS> our $debug=0;

no need to make it our unless you intend to access it from other
classes. usually options can be handled in the main source file. so i
would my that variable.

  AS> GetOptions('debug=i'=>\$debug);

and you can even do the my in there:

        GetOptions( 'debug=i'   => \my $debug );

and i prefer to put all my options into a single lexical hash (i am not
in the mood to look for the docs on how to pass it in :) so i can pass
it around if desired, print out all the option values, keep the lexical
space nice and clean, etc.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to