| sparc_ | that would be confusing |
| Limbic_Region | the use perl directive in TT is spelled PERL |
| archpollux | exactly |
| Ani-_ | What's next? Another templating system that uses PEARL? :/ |
| Limbic_Region | well, I have successfully avoided TT for years now, I see no reason to change now |
| archpollux | i guess i should've said a PERL directive instead of block |
| ks | also can an array contain a reference to arbitrary element of the same array ? |
| Limbic_Region | archpollux - I would suggest posting it to the TT list though |
| archpollux | ks: yes, it's called self-reference, causes memory leaks Limbic_Region: good idea |
| Limbic_Region | ks - you mean like my @array; @array = (\$array[1], 2); archpollux - not necessarily |
| archpollux | Limbic_Region: but it might be a newbie question |
| ks | hm interesting, thanks archpollux |
| archpollux | yeah :) |
| Limbic_Region | archpollux - the question was not to the same array but to another element within the same array |
| archpollux | Limbic_Region: i know, same thing |
| Limbic_Region | archpollux - so it could lead to circular referencing but unlikely no, it isn't |
| archpollux | that's what i'm saying ok, not the same thing :P |
| Ani-_ | archpollux: not really. |
| buu | Hrm hrm hrm. |
| Ani-_ | archpollux: a memory leak would be the case if it was: my @array; $array[6] = \@array; |
| ks | Limbic_Region i just wonder how linked lists might be organized in perl |
| buu | ks: The usual ways. |
| Limbic_Region | ks - linked lists are almost always unnecessary in perl |
| buu | Datastructures cointaining pointers. |
| Limbic_Region | ks - but yeah, the usual ways work |
| Ani-_ | archpollux: what he asked (or atleast how I understood it): my @array; $array[6] = \$array[27]; Whici is just a reference to a scalar. archpollux: if @array goes out of scope in the first example it will remain to exists. It will go away in the second example. |
| Limbic_Region | ks - contrarary to what archpollux suggested, what you asked is not likely to lead to problems ks - what archpollux thought you asked though is an issue ks - confusing huh |
| ks | yeah :) things might be interpreted differently |
| Limbic_Region | but I have only ever used linked lists in perl as an exercise in understanding data structures, I have never really needed one |
| ks | people are different |
| Limbic_Region | archpollux - WRT it being a newbie question to the TT list - you can't get what you don't ask for - newbie or not |