Home > Archive > PERL Beginners > July 2005 > How did he do that?
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 |
How did he do that?
|
|
| Tom Allison 2005-07-25, 10:03 pm |
| All this came from one error.
I usually get one line of goo from a die statement.
How did he get so much wonderful information?
Can't call method "body" on an undefined value at
/usr/share/perl5/Email/MIME/Modifier.pm line 244 (#1)
(F) You used the syntax of a method call, but the slot filled by the
object reference or package name contains an undefined value.
Something
like this will reproduce the error:
$BADREF = undef;
process $BADREF 1,2,3;
$BADREF->process(1,2,3);
Uncaught exception from user code:
Can't call method "body" on an undefined value at
/usr/share/perl5/Email/MIME/Modifier.pm line 244.
Email::MIME::parts_set('Email::MIME=HASH
(0x8b583a0)',
'ARRAY(0x8925ca4)') called at
/usr/share/perl5/Email/MIME/Attachment/Stripper.pm line 114
Email::MIME::Attachment::Stripper::_deta
ch_all('Email::MIME::Attachment::Strippe
r=HASH(0x8b3ed94)')
called at /usr/share/perl5/Email/MIME/Attachment/Stripper.pm line 88
Email::MIME::Attachment::Stripper::messa
ge('Email::MIME::Attachment::Stripper=HA
SH(0x8b3ed94)')
called at bin/imap.t line 62
| |
| Charles K. Clarkson 2005-07-25, 10:03 pm |
| Tom Allison <mailto:tallison@tacocat.net> wrote:
: All this came from one error.
: I usually get one line of goo from a die statement.
: How did he get so much wonderful information?
Place this at the top of the script.
use diagnostics;
Though I would suggest also adding strictures. I'm
pretty sure the diagnostics module calls the warnings
module, but I didn't look before replying.
use strict;
use warnings;
use diagnostics;
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
|
|
|
|
|