[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] 'Can't call method' problem



On Fri, 22 May 1998 09:49:51 -0700, Kevin Johnson wrote:
>
>MacPerl is great!...but having a problem.
>
>Using Net::SMTP, I've written a script that e-mails a dropped text file.
>I've saved it as a runtime using RuntimeBuilder and it works great on my
>machine. Trying it out on other Macs (both with MacPerl and without
MacPerl
>installed) results in the error: # Can't call method "mail" without a
>package or object reference.

Since error messages generally mean what they say, in all likelihood
you're not geHing through to the SMTP server. And so you're probably not
getting a blessed Net::SMTP reference back from new(). Try

$smtp= Net::SMTP->new($host) or die "Unable to open the connection";

>
>Any suggestions?
>
>Thanks for your help!
>Kevin
>
>--------------------------------
>Kevin Johnson
>Science Teacher
>Surprise Lake Middle School
>Fife School District
>2001 Milton Way
>Milton, WA 98354
>-----------------
>(253) 922-6695
>-----------------
>E-Mail: kjohnson@mail.fife.k12.wa.us
>Home Page: http://www.fifeschools.com/slms/sci/science.html
>
>



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch