Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

How to declare globally visible subroutine like built-in ones ? Is it possible?

by bdimych (Monk)
on Nov 06, 2007 at 10:56 UTC ( #649178=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ~>cat x.pl
    use y;
    use z;
    ...
    ~>perl x.pl
    Undefined subroutine &z::global_sub called at z.pm line 5.
    
  2. or download this
    ~>cat x.pl
    use y;
    use z;
    ...
    ~> perl x.pl
    global_sub working!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2023-12-09 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?