Re: usage of do {}
- From: yargevad@xxxxxxxxx (Dave Gray)
- Date: Thu, 30 Jun 2005 10:40:26 -0400
On 6/30/05, Peter Rabbitson <rabbit@xxxxxxxxx> wrote:
> Here and there on the web I encounter claims that the do {} operator is
> depreciated. However I find it convenient to do things like:
>
> eval { some stuff } or do { some multiline error handling };
>
> is this a bad practice?
No, that's not bad practice IMO. It evidently works for you, and I
think it's clear enough what's going on with that code. For the sake
of code reuse, though, you might want to consider generalizing the
code and sticking it into a module.
.
- References:
- usage of do {}
- From: Peter Rabbitson
- usage of do {}
- Prev by Date: xml::simple, $hash ?
- Next by Date: Re: fork() and returning hash / strings to the parent
- Previous by thread: usage of do {}
- Next by thread: Re: usage of do {}
- Index(es):