For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2007 > Re: Error:Can't locate object method "prepare" via package "abc"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Error:Can't locate object method "prepare" via package "abc"
Jonathan Lang

2007-06-01, 7:58 am

Chas Owens wrote:
> Well, there is a prototype problem, but it isn't that $ will force new
> to only accept one value, but rather that prototypes and OO Perl don't
> mix. Perl simply ignores prototypes on methods. Also prototypes are
> broken*, don't use them.

-snip-
> * http://library.n0i.net/programming/.../fm_prototypes/


"Broken" and "don't use them" is a bit extreme. But I will agree with
the general sentiment that they should not be used as a matter of
course; they should be reserved for a handful of special cases where
they help more than they harm.

--
Jonathan "Dataweaver" Lang
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com