Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Module's name and file's name

by blue_cowdawg (Monsignor)
on Jan 22, 2013 at 20:04 UTC ( #1014778=note: print w/replies, xml ) Need Help??

in reply to Module's name and file's name

      Could you explain me ?

The way Perl is "wired" when you have

use HR; # using your example
it checks all the directories in @INC for a file named "" and isn't going to look in ""

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: Module's name and file's name
by beurive.denis (Novice) on Jan 22, 2013 at 20:14 UTC


    Thank you.

    I know. That's why I use :

    use MyModule;

    That way, Perl finds the file "".

    But the the module's name is "HR" (as declared after "package"), not "MyModule".

    I think that it messes up something.

    I may be wrong.

    What do you think ?

    Thank you.

      I think that it messes up something.

      It messes up clarity for the hacker who inherits your code. :P

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014778]
[atcroft]: .oO(Then there is the effect if a site changes their timezone, such as when the International Date Line was moved by the purchase of Alaska by the US from Russia in 1867, or several places (I cannot recall off-hand) that moved from one side of the Date
[atcroft]: Line to the other recently....)
[atcroft]: .oO(Then again, you also have to be careful if you had it to the database, and be aware of any assumptions it makes (such as SQLite assuming Gregorian calendar and a day of exactly 86400 seconds)...)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-04-29 04:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.