Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Don't ask to ask, just ask
 
PerlMonks  

Re: sub-package question

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.