Hello Stephanie hope this helps you. :)

if( close (REZFILE) ){
   # print confirmation page... happy happy joy joy 
}else{
   # print error
} 

Hello Stephanie hope this helps you. :)
- Jose 



--- Stephanie Stiavetti <[EMAIL PROTECTED]> wrote:
> 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]
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to