thank you all for your help with regexp... you folks are awesome.
another question. I'm writing a script where I need to append a file, and
I'd like it to do one thing if the command is successful, and another if it
fails. how do I check to make sure it successfully appended the file?
here's my code:
open (REZFILE, "$>>rezFile") or die "ew! can't open $rezFile! $!\n";
foreach (@allParams) {
print "$_\t";
}
print "\n\n";
close (REZFILE);
if (##APPEND TO FILE WAS SUCCESSFUL##) {
# print confirmation page... happy happy joy joy
}
else {
# print error
}
thank you in advance for your help :)
`���,���,���``���,���,���``���,���,���``��
Stephanie J. Stiavetti
Production Tools
Industrial Light + Magic
415-448-3213 <-|-> [EMAIL PROTECTED]
`���,���,���``���,���,���``���,���,���``��
And then the day came when the risk to
stay tight in a bud became more painful
than the risk it took to blossom.
--Anais Nin
`���,���,���``���,���,���``���,���,���``��
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]