http://www.perlmonks.org?node_id=1217814

TonyNY has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm trying to email an attached zip file with the following code but the message just seems to go into cyberspace and not my inbox?

$logfile="$logpath.zip"; $subject="logs for $pkgname"; $user1="user01"; $recipient1="user01@email.org"; if ($userid = $user1){ system("uuencode ${logfile} ${logfile} | mailx -s ${subject} -r ${r +ecipient1}"); #print "$user1\n"; }

I've put the curly braces around the variables to try to avoid interpolation

Also tried without the curly braces but received the same result.

Thanks

Tony