Jenda Krynicky wrote:
> I don't say you should not use our(). All I say is you should know
> exactly what it means and use each of
> sub {
> our $var;
> ...
> }
>
> sub {
> my $var;
> ...
> }
>
> {
> my $var;
> sub {
> ...
> }
> }
> where it belongs.

And there we disagree. Which is fine. I've never had a bug
caused by using the same global variable in unrelated code.
I have, however, had a few from using different variables
when I meant the same one - something like $str and
$string - which nothing can protect you from.

If you have the opposite problem and can still see the code
despite all those braces then the above is what you should
use.

Cheers :-)

Rob




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

Reply via email to