> 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:
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
> > 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
> > 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
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
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
>> 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
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
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
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() =
10 matches
Mail list logo