How would you do this in Ruby, then? I work in Ruby myself, and it's
generally quite simple to translate from one language to the other.

If you just want to be able to say $columns[Name] instead if $columns[5],
it's just as simple as saying

> my $Name = 5;
>
$columns[$Name];


Or, if you hold some sort of irracional hatred towards pucntuation,

> sub Name { 5 }
>
$columns[Name];
>
(Or use the constants pragma).

Brian.

Reply via email to