in reply to Re: Template::Toolkit: defined on aggregate item vs. defined on variable
in thread Template::Toolkit: defined on aggregate item vs. defined on variable

> so if you add another element, .1 is defined

The question is why g.defined != group.1.defined when the array has one element only.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Template::Toolkit: defined on aggregate item vs. defined on variable
by beech (Parson) on Aug 05, 2016 at 22:26 UTC

    Because arrays start at 0? So group.1 is not defined? And the condition is true?

    if( 1 ne "") { print "Seems like a bug! BUT IT IS NOT BUG\n"; }
      But why is g defined, when g = group.1 and, as you said, group.1 is not defined?
      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,