Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Can't locate object method "first" via package "attempt" (perhaps you forgot to load "attempt"?) at .... (http://www.velocityreviews.com/forums/t892910-cant-locate-object-method-first-via-package-attempt-perhaps-you-forgot-to-load-attempt-at.html)

GMI 06-19-2005 06:56 PM

Can't locate object method "first" via package "attempt" (perhaps you forgot to load "attempt"?) at ....
 
"Can't locate object method "first" via package "attempt" (perhaps you
forgot to load "attempt"?) at E:\Inetpub\....\N_Clt_prf.pl line 38."I get
this error on a perl program that prints & processed a form.Program was
working until I made a simple (cosmetic) change. Could not find any
reference to this error.Could anyone our there help?Thanks.



A. Sinan Unur 06-19-2005 07:23 PM

Re: Can't locate object method "first" via package "attempt" (perhaps you forgot to load "attempt"?) at ....
 
"GMI" <Admin@GoMonitor.com> wrote in
news:11bbgp4iovmsdb@corp.supernews.com:

> "Can't locate object method "first" via package "attempt" (perhaps you
> forgot to load "attempt"?) at E:\Inetpub\....\N_Clt_prf.pl line 38."I
> get this error on a perl program that prints & processed a
> form.Program was working until I made a simple (cosmetic) change.
> Could not find any reference to this error.Could anyone our there
> help?


Yes. There is an error in your program. perl has told you the location of
the error. Go ahead and fix it.

If you really do want others to be able to help you, you'll need to
provide a minimal script that others can run without any effort that still
exhibits the problem.

For more information on how you can help yourself, and help others help
you, please read the posting guidelines for this group.

Sinan.

--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html

Sherm Pendley 06-19-2005 09:08 PM

Re: Can't locate object method "first" via package "attempt"(perhaps you forgot to load "attempt"?) at ....
 
"GMI" <Admin@GoMonitor.com> writes:

> "Can't locate object method "first" via package "attempt" (perhaps you
> forgot to load "attempt"?) at E:\Inetpub\....\N_Clt_prf.pl line 38."I get
> this error on a perl program that prints & processed a form.Program was
> working until I made a simple (cosmetic) change. Could not find any
> reference to this error.Could anyone our there help?Thanks.


It's impossible to give concrete help without seeing code.

But, as a general guideline, if a program is working, then stops working
when you make a change, then logic dictates that the change you made is the
most likely cause of the problem.

Try reversing your "simple cosmetic" alteration. Does the problem go away?

sherm--

Tad McClellan 06-19-2005 10:44 PM

Re: Can't locate object method "first" via package "attempt" (perhaps you forgot to load "attempt"?) at ....
 
GMI <Admin@GoMonitor.com> wrote:

> "Can't locate object method "first" via package "attempt" (perhaps you


> working until I made a simple (cosmetic) change.



If it broke stuff, then it was NOT cosmetic, though that may have
been your intention.


(did you leave a comment #marker# off of a comment that said "first attempt"?)


> Could not find any
> reference to this error.



Did you look it up in the manual?

perldoc perldiag


> Could anyone our there help?



We cannot debug Perl code when we have been shown no Perl code.

If you are the only one who can see the code, then you are the one
who will have to fix it.


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas


All times are GMT. The time now is 02:15 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57