Re: sending email w/perl

2002-10-24 Thread Andrew Perrin
On Wed, 23 Oct 2002, Lance Hoffmeyer wrote: The problem is: > open(FILE,">eltonjohn.txt"); Here, you open FILE for writing, but then... > [snip] >$smtp->datasend(FILE); Here you try to read from it. That won't work in any case; you can't read from a writing file handle. But you also hav

Re: sending email w/perl

2002-10-23 Thread Gerald Livingston
On Wed, 23 Oct 2002 21:26:32 -0500 Lance Hoffmeyer <[EMAIL PROTECTED]> wrote: > I have a script where I am searching ebay > to get results and email these to myself. > The filehandle is FILE but everytime I > try to insert FILE into the $smtp it > prints "FILE" and not the contents of file. > Wha

sending email w/perl

2002-10-23 Thread Lance Hoffmeyer
I have a script where I am searching ebay to get results and email these to myself. The filehandle is FILE but everytime I try to insert FILE into the $smtp it prints "FILE" and not the contents of file. What is the fix for this? use WWW::Search; open(FILE,">eltonjohn.txt"); print FILE "Results