heezy has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a glossary file containing localizied versions of different words;
e.g.
%current = ( eng => 'Current', ca => 'Courant', de => 'Zur Zeit verfuegbar', fr => "Actuellement", br => 'Atualmente', ar => 'Actual', cl => 'Actual', co => 'Actual', mx => 'Actual', ve => 'Actual', es => 'Actual', ); %or = ( eng => 'or', es => 'o', ar => 'o', cl => 'o', co => 'o', mx => 'o', ve => 'o', br => 'ou', it => 'o', pl => 'lub', );
So $current{"de"} gives you the German representation of the word "current"
I'm looking to create a webpage with a large table showing hash names in the first column then all other columns listing the translated (localizied) version for each country (I have country codes in a seperate hash that I can cycle through)
The Question..
Is there a module or a simple way of listing all the hashes in the file glossary.pl? I would ideally like this information in an array or hash names eg..
@hashNames = [ "current", "or", "the", "revised" ]
Any nice module to parse the file for me?
Thanks people
M
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing hash names in a file
by jdporter (Paladin) on Dec 09, 2002 at 20:24 UTC | |
by heezy (Monk) on Dec 09, 2002 at 20:32 UTC | |
by jdporter (Paladin) on Dec 09, 2002 at 20:35 UTC | |
by demerphq (Chancellor) on Dec 09, 2002 at 23:14 UTC | |
|
Re: Passing hash names in a file
by jsprat (Curate) on Dec 09, 2002 at 23:15 UTC | |
|
Re: Passing hash names in a file
by graff (Chancellor) on Dec 10, 2002 at 05:33 UTC | |
|
Re: Passing hash names in a file
by dingus (Friar) on Dec 10, 2002 at 09:38 UTC | |
by heezy (Monk) on Dec 10, 2002 at 15:59 UTC |