Suggestions other than grep -b3 :-)

Lusercop `the.lusercop' at lusercop.net
Thu Apr 13 16:03:30 BST 2006


On Thu, Apr 13, 2006 at 04:43:44PM +0200, Jonathan McKeown wrote:
> 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.

Ah, point. Sorry.

-- 
Lusercop.net - LARTing Lusers everywhere since 2002


More information about the london.pm mailing list