courierb has asked for the wisdom of the Perl Monks concerning the following question:
turn $string $string = "{file => 'file1', desc => 'test}, {file => 'file12', desc + => 'test2'}" into my @array_of_hashes = ( {file => 'file1', desc => 'test}, {file => 'file12', desc => 'test2'}, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert stirng to array of hashes
by cdarke (Prior) on Aug 08, 2009 at 13:20 UTC | |
by codeacrobat (Chaplain) on Aug 08, 2009 at 20:34 UTC | |
by Anonymous Monk on Aug 09, 2009 at 13:13 UTC | |
by courierb (Novice) on Aug 10, 2009 at 03:28 UTC | |
|
Re: Convert string to array of hashes
by moritz (Cardinal) on Aug 08, 2009 at 12:19 UTC | |
|
Re: Convert stirng to array of hashes
by ikegami (Patriarch) on Aug 08, 2009 at 15:27 UTC | |
|
Re: Convert stirng to array of hashes
by Anonymous Monk on Aug 08, 2009 at 13:04 UTC |