Your $hostname has a trailing newline - you should chomp it first:
my $hostname=`hostname`; chomp $hostname; # ... etc.
In reply to Re: Perl Script Email error
by hippo
in thread Perl Script Email error
by cbtshare
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |