Just want to say thanks to everyone who responded, this is the first time I
have used this list for help, and surprised how fast I got helpful
responses.



                                                                                       
                                                    
                    Daniel Gardner                                                     
                                                    
                    <daniel@danielga        To:     [EMAIL PROTECTED]  
                                                    
                    rdner.org>              cc:     [EMAIL PROTECTED]                 
                                                    
                                            Subject:     Re: Using die but not break 
out of the script                                     
                    12/07/2001 02:52                                                   
                                                    
                    PM                                                                 
                                                    
                    Please respond                                                     
                                                    
                    to Daniel                                                          
                                                    
                    Gardner                                                            
                                                    
                                                                                       
                                                    
                                                                                       
                                                    



Friday, December 07, 2001, 7:38:11 PM, [EMAIL PROTECTED]
wrote:

> Is there a way to use die but not break the entire script?

> system ("dir $servervolume > dirinfo") || die "cant get dir info";

> I want it that if does die to assign a value of zero to a variable?  Is
> that posssible?

how about:

  $var = system ("dir ...");

it'll be 0 on success, which isn't quite what you want, but probably
just as useful.

check perldoc -f system


--
Best regards, Daniel

-- If you do what you always do, you'll get what you always get --


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






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

Reply via email to