Suggestions other than grep -b3 :-)

Jonathan McKeown jonathan at hst.org.za
Thu Apr 13 15:43:44 BST 2006


On Thursday 13 April 2006 16:27, Lusercop wrote:
> On Thu, Apr 13, 2006 at 03:10:05PM +0100, Simon Wistow wrote:
> > On Thu, Apr 13, 2006 at 02:58:03PM +0100, Jonathan Stowe said:
> >> Apart from the typo I can't actually see what is wrong with this code,
> >> maybe you explain what "this sort of construct" is precisely.
> >
> > Presumably the double use of my on $retval which would prevent the
> > setting of $retval->{a} being returned from the sub.
>
> Isn't that a warning in normal perl code?

Only if both declarations occur in the same lexical scope: the example was a 
redeclaration in an inner scope.

Jonathan


More information about the london.pm mailing list