Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: sub-package question

by antirice (Priest)
on Jul 07, 2004 at 01:47 UTC ( [id://372244]=note: print w/replies, xml ) Need Help??


in reply to sub-package question

A way around this is to actually define the entry in %INC. For instance:

package Foo::Bar; BEGIN { $INC{"Foo/Bar.pm"} = $0; use base "Exporter"; @EXPORT = "hi"; } sub hi { print "Hi from Foo::Bar" } package main; use Foo::Bar; hi();

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (None)
    As of 2024-04-25 00:35 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found