Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i have a list of files that i'd like to put into an array. there are a number of different files each indentified by a 2 letter prefix. so the files might be call vs010101.000, ud010101.000, eq010101.000. at any other time there might a another type added. what i'd like to do is push modification times of each of those files into arrays for each type.
so i might have
for (@filetypes) { push(@$_modtime,$modtime); #obviously not how its done }
or something like that. what i'd like to know if how i create an array like that where the first 2 characters of the array are the type of file it is.
thanx in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamically named arrays
by BrowserUk (Patriarch) on Oct 21, 2002 at 04:53 UTC | |
by Anonymous Monk on Oct 21, 2002 at 05:18 UTC | |
by Sinister (Friar) on Oct 21, 2002 at 09:06 UTC | |
by thor (Priest) on Oct 21, 2002 at 15:31 UTC | |
by iburrell (Chaplain) on Oct 21, 2002 at 19:05 UTC | |
by demerphq (Chancellor) on Oct 21, 2002 at 11:02 UTC | |
|
Re: dynamically named arrays
by graff (Chancellor) on Oct 21, 2002 at 04:40 UTC | |
by sch (Pilgrim) on Oct 21, 2002 at 04:45 UTC | |
|
Re: dynamically named arrays
by sch (Pilgrim) on Oct 21, 2002 at 04:03 UTC | |
|
Re: dynamically named arrays
by diotalevi (Canon) on Oct 21, 2002 at 04:09 UTC |