That's why you need to stop programming on your Palm Pilot. :)
-----Original Message----- From: Chas Owens [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 1:33 PM To: Nikola Janceski Cc: [EMAIL PROTECTED] Subject: Style issues (was RE: Increment a Variable) No offense taken (TMTOWTDI). For debugging purposes I like to be able to see entire functions (and sometimes more than one) on the screen at the same time. With short loops like this one that means keeping it as short and sweet as possible to maximize the amount of code visible at one time. So I tend to convert code that looks like this: my $col = 0; foreach my $data (@list) { $worksheet1->write(0, $col, $list); $col++; } to my $col = 0; $worksheet1->write(0, $col++, $_) foreach (@list); Sometimes I will even shorten the foreach to a for if I am running out of room. -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]