I don't use our, so I'm not sure if there's some subtlety going on here that I am missing. With that in mind, I fail to see how your sub differs from:
sub whatever_its_called { my ($dbh) = DBI->connect(...); sub do_hit { $dbh->prepare("stuff"); } }
Look ma! no our! That's the whole point.
- another intruder with the mooring of the heat of the Perl
In reply to Re^4: Use of 'our' considered harmful
by grinder
in thread Use of 'our' considered harmful
by DrHyde
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |