Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: A problem when modify a pm

by bulk88 (Priest)
on Dec 19, 2012 at 04:35 UTC ( #1009491=note: print w/replies, xml ) Need Help??


in reply to A problem when modify a pm

I don't understand what you are doing, and you aren't showing enough code. the "use Some::Thing;" goes by file on your disk, never what is inside the file. It has no connection to the packages declared in that file. Usually a Perl module file's name will be identical to the package statement in the that module for sanity reasons.

Replies are listed 'Best First'.
Re^2: A problem when modify a pm
by anaconda_wly (Scribe) on Dec 19, 2012 at 05:28 UTC

    OK, it's like this: to solve a problem, I have to make changes to the TieRegistry module. But to be safe, I didn't change on it directly. Instead, I made a copy and change the copied one and renamed it as TieRegistry64 in the same Perl lib folder as TieRegistry. But error mentioned happens and I didn't know how to fix at the moment.

      The TieRegistry is a standard module of Perl. In normal time when I "use Win32:TieRegistry", I can use $Registry directly without error. I found one line in TieRegistry:

      use vars qw( $RegObj %_Roots %RegHash $Registry );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009491]
help
Chatterbox?
[SuicideJunkie]: When you say "finished 18", does that mean he's now 19, or is it like an array indexing thing?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-01-18 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (214 votes). Check out past polls.

    Notices?