--- Eduard Grinvald <[EMAIL PROTECTED]> wrote:
> $homepage = "/home/yourdomain/counter/";
> 
> $counterfile = "$homepage counter.txt"; #Full file path of
counter.txt

> for(my $i = 0; $i <= 9; $i++){
>   $imagefile{i} = $homepage.$i."gif";
> }

As a general rule, avoid using the for(;;){} structure when you can.
Foreach is supposed to be much cleaner (though I'd love to see some
benchmarking), and it's usually more readable.

 for my $i (0..9) {
   $imagefile{i} = $homepage.$i."gif";
 }

Some people prefer the brevity of the default variable.

  $imagefile{$_} = "$homepage$_.gif" for 0..9;

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to