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]

Reply via email to