in reply to Re: Tree path analyzer regex problem (maybe other issues)?
in thread Tree path analyzer regex problem (maybe other issues)?

Thanks -- that does exactly what I want. Can you explain what some of the magic does? Specifically:

foreach my $i (0 .. $#last)

and

foreach my $i (0 .. $#last)

Replies are listed 'Best First'.
Re^3: Tree path analyzer regex problem (maybe other issues)?
by kennethk (Abbot) on Jun 23, 2009 at 17:05 UTC
    I would not describe that as magic. Range Operators (written as ..) produce a list of integers between the two limits. As described in Variable names, $#array returns the index of the last element of @array. "Magic" usually involves (from my perspective) either action-at-a-distance or Perl typing in the background. These are just operators.