Re: one more nice2haveit

2001-07-18 Thread jh_lists
> I've go tired of typing :"), but if I had current index-iterator ( say under > $i just as example) at hand the way I have $_ i can just type : > > print "$_ : $b[$i]\n" for @a; > OR > print "$a[$i] : $b[$i]\n" for @a; > For a general solution to this see Buddha Buck's RFC on iterators:

RE: one more nice2haveit

2001-07-18 Thread Sterin, Ilya
How about print "$a[$_]:$b[$_] for 0..$#a; or in the p6 case... print "@a[$_]:@b[$_]" for 0..$#a; Ilya -Original Message- From: raptor To: [EMAIL PROTECTED] Sent: 07/18/2001 12:14 PM Subject: one more nice2haveit hi, As I was programming i got again to one thing i alwas needed to

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread Stuart Rocks
> > 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"; >} This is m

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread Stuart Rocks
> > 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"; >} This is m

Re: saving attachments of mail in MIME format

2001-07-18 Thread Priyanka porwal
Thanks, I tried using MIME-Tools-5.4.11.tar.gz I'm facing an interesting problem. I'm using the following code to dump the mail. Now I'm receiving a file "encrypted.txt" in mail as attachment. The code works fine & it dumps the contents & the attachment also. I have set my .procmailrc as :0 c |pe

one more nice2haveit

2001-07-18 Thread raptor
hi, As I was programming i got again to one thing i alwas needed to have... especialy when write something fast or debug some result... words comes about for/foreach and accessing the current-index of the array I'm working with i.e. say I have two arrays @a and @b and want to print them (al

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread raptor
>> Does such a thing exist already? > >A WTDI exists already: > >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. ]- OR

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread jh_lists
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" s

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread Bart Lateur
On Wed, 18 Jul 2001 09:00:25 -0400, John Porter wrote: >> Does such a thing exist already? > >A WTDI exists already: > >for ( $XL->{Application}->{ActiveSheet} ) { > $_->cells(1,1) = "Title"; > $_->language() = "English"; >} > >(presuming lvalue-methods, of course...) So, in th

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread John Porter
Jeremy Howard wrote: > with $XL->{Application}->{ActiveSheet} { > ->cells(1,1) = "Title" > ->language() = "English" > } > > Does such a thing exist already? A WTDI exists already: for ( $XL->{Application}->{ActiveSheet} ) { $_->cells(1,1) = "Title"; $_->language() =