Bart Lateur wrote: > So, in this case, a "with" synonym for "for" would work. > > But this only works for scalars. You can't have a %foo alias to > %Some::Other::hash this way, or a @bar alias to @Some::Other::array. Sounds like what we really want is a form of "for" which can iterate over a list of hashes or arrays: for my @a ( @foo, @bar ) { ... for my %h ( %foo, %bar ) { ... -- John Porter
- Re: aliasing - was:[nice2haveit] Bart Lateur
- Re: aliasing - was:[nice2haveit] jh_lists
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- RE: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] Stuart Rocks
- RE: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] John Porter
- RE: aliasing - was:[nice2haveit] Sterin, Ilya
- Re: aliasing - was:[nice2haveit] John Porter
- Re: aliasing - was:[nice2haveit] Me
- Please sign me off Alice Li