Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://584879]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-19 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found