Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009491]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-04-26 00:30 GMT
Find Nodes?
    Voting Booth?