On Mon, Jun 25, 2001 at 09:46:06AM +0800, Rajeev Rumale wrote:
> But I am not getting the proper values in $@ variable.

What do you mean you're not getting the proper values in $@?  What values are
you getting, what are you expecting?


> I would be greatfull if any one can explain the correct usage of eval{}
> blocks.

    eval { ... };
    die("Error in eval: $@") if $@;

You may also wish to localize the __DIE__ handler, and thus remove the
current handler until your eval is done.

    eval { local $SIG{__DIE__}; ... }

See perldoc -f eval.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to