in reply to Re^5: System Command Issues
in thread System Command Issues
use strict; use warnings; my $address = 'myemail@whatever.com'; my $subject = "Comments Version: $version ID: $ID"; system( "mail $address -s '$subject' < blah6.txt" ) == 0 or die "mail failed: $?";
Variable "$ID" is not imported at myscript.pl line 137. Variable "$version" is not imported at myscript.pl line 137. Possible unintended interpolation of @whatever in string myscript.pl l +ine 154. Possible unintended interpolation of @whatever in string at myscript.p +l line 154. Global symbol "$ID" requires explicit package name at myscript.pl line + 137. Global symbol "$version" requires explicit package name at myscript.pl + line 137. Global symbol "@whatever" requires explicit package name at myscript.p +l line 154. Global symbol "@whatever" requires explicit package name at myscript.p +l line 154. Execution of myscript.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: System Command Issues
by blanket (Initiate) on Jun 09, 2005 at 15:32 UTC |