Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@pathparts should be transformed intomy @pathparts = split(/\//, "/dir1/dir2/dir3/file1"); my %hash;
thank you,$hash{"dir1"}{"dir2"}{"dir3"}{"file1"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: transform array into a data structure
by jdporter (Paladin) on Sep 28, 2007 at 21:07 UTC | |
|
Re: transform array into a data structure
by TGI (Parson) on Sep 28, 2007 at 21:42 UTC | |
|
Re: transform array into a data structure (Data::Diver)
by bobf (Monsignor) on Sep 29, 2007 at 03:00 UTC | |
|
Re: transform array into a data structure
by kyle (Abbot) on Sep 28, 2007 at 21:02 UTC | |
|
Re: transform array into a data structure
by perlfan (Parson) on Sep 29, 2007 at 00:30 UTC | |
by calin (Deacon) on Sep 29, 2007 at 19:29 UTC | |
|
Re: transform array into a data structure
by graff (Chancellor) on Sep 30, 2007 at 00:14 UTC |