Hey, Blip.

Just change the '||die' part to something less fatal... like '||<log an error>' or 
'||warn qq/Error with command $cmd: $!/'.

The 'die' function kills your script.  You don't want that.

Later,
Chad.

On Mon, 20 May 2002, Blip Sid wrote:

> 
> I wrote a script that basically does the following.
> 
> foreach variable in an array A{
>     foreach variable in array B {
>         Do something like issuing a system command and
> compare variable A to the output|| die
>         }
>     }
> 
> The problem is that if the Do something part fails,
> the script exits altogether without proceeding to the
> next array variable B and A.
> 
> How can I fix it?
> 
> I didn't think Next, Redo will help.
> 
> Any suggestions appreciated.
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to