Bart Lateur wrote:
> On Wed, 18 Jul 2001 09:00:25 -0400, John Porter wrote:
> > for ( $XL->{Application}->{ActiveSheet} ) {
> > $_->cells(1,1) = "Title";
> > $_->language() = "English";
> > }
> >
> >(presuming lvalue-methods, of course...)
>
> So, in this case, a "with" synonym for "for" would work.
>
Particularly if '$_' was implied... So with Perl 6's '.' replacing '->',
and 'with' aliasing 'for':
with ( $XL.{Application}.{ActiveSheet} ) {
.cells(1,1) = "Title";
.language() = "English";
}
Heh. That is nice and compact... although it's getting hard to tell it
apart from VB ;-)
--
Jeremy Howard
[EMAIL PROTECTED]
- Re: aliasing - was:[nice2haveit] raptor
- Re: aliasing - was:[nice2haveit] Jeremy Howard
- Re: aliasing - was:[nice2haveit] 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
