Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Can't locate object method "new" via package "Class::DBI::SQL::Transformer" at C

by mikasue (Friar)
on Nov 18, 2006 at 20:06 UTC ( #584879=note: print w/replies, xml ) Need Help??


in reply to Re: Can't locate object method "new" via package "Class::DBI::SQL::Transformer" at C
in thread Can't locate object method "new" via package "Class::DBI::SQL::Transformer" at C

Thanks for your reply. I included the Class::DBI::SQL::Transformer in my script but then I got the following warnings. Did these warnings ever appear for you?

Subroutine new redefined at C:/Perl/site/lib/Class/DBI/SQL/Transformer.pm line 3 2.
Subroutine sql redefined at C:/Perl/site/lib/Class/DBI/SQL/Transformer.pm line 5 5.
Subroutine args redefined at C:/Perl/site/lib/Class/DBI/SQL/Transformer.pm line 61.
Subroutine _expand_table redefined at C:/Perl/site/lib/Class/DBI/SQL/Transformer .pm line 67.
Subroutine _expand_join redefined at C:/Perl/site/lib/Class/DBI/SQL/Transformer. pm line 77.
Subroutine _do_transformation redefined at C:/Perl/site/lib/Class/DBI/SQL/Transf ormer.pm line 108.

  • Comment on Re^2: Can't locate object method "new" via package "Class::DBI::SQL::Transformer" at C

Replies are listed 'Best First'.
Re^3: Can't locate object method "new" via package "Class::DBI::SQL::Transformer" at C
by rinceWind (Monsignor) on Nov 18, 2006 at 20:15 UTC

    Looks like the Transformer.pm module code is being pulled in twice. Are you using "use" or "require"? "use" has an internal mechanism which stops this duplicate loading from happening.

    If you post the code, I should be able to tell what is wrong.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      um I used use not require

      I took that out and the warnings went away but my original problem stands. Thanks anyway for your help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://584879]
help
Chatterbox?
[RonW]: Happy Thanksgiving Eve
[RonW]: and no panic, here. We're staying home, safe from the frenzy in the stores
[AnomalousMonk]: choroba: It even has Rama's (relatively) high rate of spin, although I don't know if it's axial spin.
[LanX]: Rama spins?
LanX probably in my stomach

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-11-22 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?