Untested code with lots missing and probable syntax errors.
opendir DIR, $picdir or die $!; @pics = grep{ -f $_ } <DIR>; closedir DIR or warn $!; print start_table; for my $i (0 .. ($#pics/5+1)) { my $row = map{ td( a( [ href=>"$baseurl/$_", alt =>$_ ]) ) } @pics[$i*5 ..($i*5)+4]; print Tr( $row ); } print end_table;
In reply to Re: simple column/row counter
by BrowserUk
in thread simple column/row counter
by monkscafe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |