Joseph, et al --

...and then R. Joseph Newton said...
% 
% David T-G wrote:
% 
% > I'm having some trouble using this wonderful-looking module to tackle
% > catching bounced mail and doing something with it.  I've followed the
% > man page to a tee but get errors.
...
% >   print "WE HAVE orig_message AS .$orig_message.\n";      ###
% >
% > This works well enough except that $orig_message seems to be empty; well,
% > I had an orig message in there but I'm not too worried about that at the
% > moment.
% 
% I would suggest that you do.  Programs do not generally work well if the data is not 
getting into the variables.

Fair enough, but since other things worked fine I wasn't worried about
that one variable.  As I noted, ...


% 
% >  The real problem is when I go on to say:
% >
% >   print "arrival-date: " ; print $report->get('arrival-date'); print "\n" ;
% >
% > and it pukes with
% >
% >   Global symbol "$report" requires explicit package name at 
./catch-bounced-mail.pl line 32.
% 
% What am I missing?  I look at the code posted, and see no declaration for any scalar 
$report?  Is there some
% reason you expect the compiler to recognize this identifier?

No, but I didn't know where to find it.  As I said, I was following the
man page, which seemed to do a lovely job of laying out the framework of
a script.  And yet at this point it fell down...


% 
% > What do I need to do to get to each of these reports?
% 
% which reports?  The ones stored in the properly declared array @reposts?

Yup; those.


% 
% foreach my $report (@reports) {
%   $report->do_something();
% }

Thanks!


% 
% Joseph


HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to