in reply to Re: Re (tilly) 1: autotie in Attribute Handlers
in thread autotie in Attribute Handlers
Any human looking at this would say that the first closing paren is inside of a quoted string, and so this code is correct. But Attribute::Handlers disagrees. It is perfectly willing to stop at the first paren, and claim that the passed argument was the string:my %hash : Test('one', 'two', 'three)');
And therefore the following quote is interpreted differently than it should be."'one', 'two', 'three"
I assume that this is due to the heuristics it uses to parse Perl. If it is hard to fix (as I assume) then it is probably something to solve in 6.0. But I think it is a gotcha worth noting, along with the workaround:
my %hash : Test('one', 'two', 'three\)');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 3: autotie in Attribute Handlers
by TheDamian (Vicar) on Nov 04, 2001 at 05:12 UTC |