Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Location of 'use' statements

by djantzen (Priest)
on Apr 18, 2003 at 23:12 UTC ( #251576=note: print w/replies, xml ) Need Help??


in reply to Re: Location of 'use' statements
in thread Location of 'use' statements

You mean if two modules export functions with the same name? In that case you'll have problems no matter what the order though, right? Fortunately I haven't encountered that problem before myself, but the possibility is just one more reason to use warnings. :^)


"The dead do not recognize context" -- Kai, Lexx

Replies are listed 'Best First'.
Re: Re: Re: Location of 'use' statements
by diotalevi (Canon) on Apr 18, 2003 at 23:14 UTC

    I'm quibbling over whether to be a fan of use warnings FATAL => 'all'; which would ensure you didn't do that by accident.

Re: Re: Re: Location of 'use' statements
by Beatnik (Parson) on Apr 19, 2003 at 10:58 UTC
    Ofcourse you are in trouble but the order in which use is used determines which function is actually used.

    Greetz
    Beatnik
    ... I'm belgian but I don't play one on TV.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://251576]
help
Chatterbox?
[choroba]: Good morning, if a bit rainy
[marto]: life is a struggle :P I'm glad the GPW went well.
[Corion]: Hi choroba! Yeah, I brought the rain with me from Hamburg
[Corion]: marto: As am I ;) And we got two interested locations for next year, Munich and Cologne maybe, which is great as well. Not Berlin though ;)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-06-29 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (655 votes). Check out past polls.