Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Please provide a solution for this.

Expand Messages
  • merlyn@stonehenge.com
    ... Vivek I have a package name Global in Global.pm file. This file I created to Vivek share the global variables (e.g $gvar1, $gvar2, $gvar3) across
    Message 1 of 2 , Mar 22, 2007
    • 0 Attachment
      >>>>> "Vivek" == Vivek Kumar <kumarvivek_2001@...> writes:

      Vivek> I have a package name Global in Global.pm file. This file I created to
      Vivek> share the global variables (e.g $gvar1, $gvar2, $gvar3) across different
      Vivek> Perl files. say first.pl, second.pl third.pl.

      Please stop that. The fewer globals you have, the higher quality your code
      will be for debugging, maintenance, and reusability. Export behavior, not
      variables.

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.