Chas, no personal offense, but that code just looks ugly. I like the way
it's originally written by Mike.

So what version of perl are you using? perl -v

> -----Original Message-----
> From: Chas Owens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 4:09 PM
> To: Michael Stearman
> Cc: [EMAIL PROTECTED]
> Subject: Re: Increment a Variable
> 
> 
> On Mon, 2002-04-01 at 16:03, Michael Stearman wrote:
> > It could be my code.  I am using the variable to write to 
> an Excel file in 
> > which I want to increment the cell from A1 to B1 to C1, etc.
> > 
> > $x="A";
> > foreach $list(@list) {
> >     $cell="$x1";
> >     $worksheet1->write($cell, $list);
> >     $x++;
> > }
> >
> 
> How about using
> 
> my $col = 0;
> $worksheet1->write(0, $col++, $_) for (@list);
> 
>  
>  
> -- 
> Today is Sweetmorn the 18th day of Discord in the YOLD 3168
> 
> 
> Missile Address: 33:48:3.521N  84:23:34.786W
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to