Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Inheritance and merging of fields

by davorg (Chancellor)
on Jul 25, 2006 at 11:10 UTC ( #563484=note: print w/replies, xml ) Need Help??


in reply to Re^2: Inheritance and merging of fields
in thread Inheritance and merging of fields

Well, if you have a cut-down version that works and a full version that doesn't, then why not start with the cut-down version and slowly add code from the full version until it breaks.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re^3: Inheritance and merging of fields

Replies are listed 'Best First'.
Re^4: Inheritance and merging of fields
by nite_man (Deacon) on Jul 25, 2006 at 16:18 UTC
    The problem seems resolved by adding
    use ParentClass;
    before
    use base qw(ParentClass); use fields qw(field1, ... );
    It's very strange because without using
    use ParentClass;
    Any ideas why?

    ---
    Michael Stepanov aka nite_man

    It's only my opinion and it doesn't have pretensions of absoluteness!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-07-28 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?