Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Re: Help: Constructors and all things OO.

by IOrdy (Friar)
on Aug 28, 2001 at 17:34 UTC ( [id://108433]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Help: Constructors and all things OO.
in thread Help: Constructors and all things OO.

This is the code I made to call the module iXML::TheConstructor;
#!/usr/bin/perl -w use lib '/usr/home/iordy/perl.iordy.net'; use strict; use Apache::Request; use iXML::TheConstruct; my $r = Apache->request; my $constuctor = iXML::TheConstruct->new();


it works up until I add the ref my $r = Apache->request; so I tried it with XML::XPath and HTML::Template and it works fine which leads me to beleive something must be happening with Apache when I use my module. Depending on which I load first with 'use' the other comes up with the error "unable to find method 'new' via Module.".

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Help: Constructors and all things OO.
by MZSanford (Curate) on Aug 28, 2001 at 17:41 UTC
    sounds like you are on the right track, but just to make sure of something. "unable to find method 'new' via Module" is caused when the .pm file with the module name was loaded, but the new() method could not be found. Usually when i have this, it is because i mis-spelled the package name in the package statement, or some other madness which causes the module to load, but in the wrong namespace. I would double check the module for any problems in the package statement, including missing ;'s. You might even want to check %iXML:: for anything fishey.
    can't sleep clowns will eat me
    -- MZSanford

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-18 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found