JayBee has asked for the wisdom of the Perl Monks concerning the following question:
Thank you in advance. JayBee
$glob = "../dir/*.txt"; @listoitems = glob( $glob ); print br, 'Found: ', $#listoitems + 1, ' items', br; $i=0; print '<table width="600">'; foreach $item (@listoitems) { $item = pop(@listoitems); $i++; if ($i>9){$i=0;} if ($i =~ /0|2|4|6|8/) { @file=get_data($item); ##process and read the file tab1($file[0], $file[1], $file[2], $file[3], $file[4]); } #end if even# else { @file=get_data($item); ##process and read the file tab2($file[0], $file[1], $file[2], $file[3], $file[4]); } #end if odd# } #end foreach#
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pop an array
by broquaint (Abbot) on Feb 09, 2004 at 13:37 UTC | |
|
Re: pop an array
by Abigail-II (Bishop) on Feb 09, 2004 at 13:51 UTC | |
|
Re: pop an array
by Vautrin (Hermit) on Feb 09, 2004 at 14:36 UTC | |
by Fletch (Bishop) on Feb 09, 2004 at 14:40 UTC | |
by Vautrin (Hermit) on Feb 09, 2004 at 14:46 UTC | |
| |
by ambrus (Abbot) on Feb 10, 2004 at 14:21 UTC | |
|
Re: pop an array
by CountZero (Bishop) on Feb 09, 2004 at 19:58 UTC | |
|
Re: pop an array
by TomDLux (Vicar) on Feb 09, 2004 at 22:20 UTC |