On Tue, Jul 30, 2002 at 04:41:00PM -0400, Jeff 'japhy' Pinyan wrote:
> On Jul 30, Benjamin Goldberg said:
>
> >Jeff 'japhy' Pinyan wrote:
> >>
> >> Where in op.c (I assume) is the code that makes a lexical an alias to
> >> the element being iterated upon in a for loop?
> >>
> >> for my $x (@y) {
> >> # \$x == \$y[$i]
> >> }
> >>
> >> I'm wondering why Perl doesn't have a method for generating aliases
> >> easily.
> >
> >Perhaps you want to use Devel::LexAlias ?
>
> Perhaps you are golden. Thank you very much. I will examine this module.
Uh. It's not in the module list and is (almost certainly) in the
wrong namespace. Devel::* modules are not meant for normal use in
production code.
Tim.