The open file and save that I have been using for some of my scripts have all of a sudden stopped saving the file...
print FILE "$sitename | $url | $desc |", "\n";
open(MAIL, "|$mail_path -t") || die "Cant open $mail_path\n";
print MAIL "From: crashinto\@crashinto.com\n";
print MAIL "To: addurl\@crashinto.com\n";
print MAIL "Subject: New link added\n\n";
print MAIL "Website title: $sitename\n";
print MAIL "Address: $url\n";
print MAIL "Description: $desc\n";
close(MAIL);
close(FILE);This will send me the email with the correct information of what link was added, but it will not print to links.txt
-------------
Jeremy
Code:
open(FILE, ">> links.txt"); print FILE "$sitename | $url | $desc |", "\n";
open(MAIL, "|$mail_path -t") || die "Cant open $mail_path\n";
print MAIL "From: crashinto\@crashinto.com\n";
print MAIL "To: addurl\@crashinto.com\n";
print MAIL "Subject: New link added\n\n";
print MAIL "Website title: $sitename\n";
print MAIL "Address: $url\n";
print MAIL "Description: $desc\n";
close(MAIL);
close(FILE);
-------------
Jeremy