Re: [CDBI] Trouble with Perl's reverse function
[email protected] (Randal L. Schwartz)
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Carlos" == Carlos Vicente <cvicente-zZ82ZiX1S8l+u43qRgrggVnYRNhDb3e+9nwVQlTi/[email protected]> writes: Carlos> I was wondering if anyone has seen this behavior and could give me some Carlos> hints. Carlos> In a class that inherits from Class::DBI, say MyApp::Class, I have a Carlos> method which applies the 'reverse' function on a simple Perl array: Carlos> e.g. Carlos> push @foo, 'bar'; Carlos> @rev = reverse @foo This cannot be the entire code. Please post the entire *trimmed* code that demonstrates the problem. Carlos> The result: Carlos> Can't locate object method "get" via package "bar" (perhaps you forgot Carlos> to load "bar"?) at /usr/lib/perl5/site_perl/5.8.7/Class/Accessor.pm line Carlos> 393. There's no way that error message comes from the code you've just shown. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!