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

Re: [PBML] Perl 5 standard

Expand Messages
  • Dave Gray
    ... C is for copying stuff into your current namespace, i.e. C + C == C . Or, more specifically, BEGIN { require Something; import
    Message 1 of 4 , Feb 23, 2005
    • 0 Attachment
      > Thanks a ton for the response. Can you also throw some light on
      > import/export? How do I use it in my module?

      C<import> is for copying stuff into your current namespace, i.e.
      C<require> + C<import> == C<use>. Or, more specifically,

      BEGIN {
      require Something;
      import Something;
      }

      does the same thing as

      use Something;

      exporting stuff from modules is documented here:
      <http://search.cpan.org/~nwclark/perl-5.8.6/lib/Exporter.pm>
    Your message has been successfully submitted and would be delivered to recipients shortly.