Hi Shlomi,

> > In your opinion, what should the hash mentioned in your first
> > paragraph contain?
> 
> It should contain data specific to every $lang/$kurz pair (whatever
$kurz is - I
> don't speak German, and one should use English identifiers in one's
code.).
> The keys would be either $lang or $kurz (whatever you prefer to
iterate on)
> and you would populate the values of the hash (which could be a hash
> reference, but should preferably be an object of a certain class) with
the
> variables specific to the $lang/$kurz pair like you do now with
varvarname.
> 
> >
> > And where does NoraSqlObject come from?
> >
> 
> "NoraSqlObject" is the class name of the objects you would use as the
values
> of the hash that holds the data for all $lang/$kurz. It could be
called
> differently. To learn more about objects see:
> 
> http://perl-begin.org/topics/object-oriented/

Thanks for the link! I already read some stuff referenced there, and
this fog of "Object Oriented Programming" is already beginning to clear.


Furthermore, I came to the conclusion that this OO approach is too
extensive for what I was trying to realize. So, since there was no
evident need for being able to associate the long names of a staff group
($lang) with the corresponding abbreviation ($kurz), I simply changed
the hash into an array and everything is fine :-)

Regards,
Nora


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to