Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Namespace and use confusion. "Undefined subroutine errors"

by ikegami (Patriarch)
on May 05, 2005 at 19:49 UTC ( [id://454482]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Module LIST;
    
  2. or download this
    require Module;
    Module->import LIST if Module->can('import');
    
  3. or download this
    test1.pl:2     use strict;
    test1.pl:4     use lib qq{/usr/web/wonko/test/lib/SYS};
    ...
                      if SYS_mail->can('import');
    
       ERROR!!
    
  4. or download this
    use vars qw(@ISA @EXPORT_OK);
    use Exporter();
    @ISA = qw(Exporter);
    @EXPORT_OK = qw( send_notice );
    
  5. or download this
    /usr/web/wonko/test/AB/AB_prod.pm
    #--------------------------------------------------------------------
    ...
    }
    1;
    #--------------------------------------------------------------------
    
  6. or download this
    /usr/web/wonko/test/lib/SYS/SYS_mail.pm
    #--------------------------------------------------------------------
    ...
    }
    1;
    #--------------------------------------------------------------------
    
  7. or download this
    use strict;
    use warnings;
    ...
    ======
    Hello from AB_prod::send_notice
    Hello from SYS_mail::send_mail
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://454482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-28 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found