in reply to Saving a %hash

Not relating to your problem - but may I ask why are you using a hash for what looks like a perfect place for an array:

#instead of $cords{1} = ... $cords[1] = [a,b];

-- Hofmator

Replies are listed 'Best First'.
Re: Re: Saving a %hash
by smitz (Chaplain) on Oct 22, 2001 at 18:27 UTC
    Hey, sometimes you wake up, and your just not in the mood for an array.
    Actually, later on the script uses a lookup table, and I only know how to call a sub who's name is in a hash, like so:

    &{$cords{$x}};

    Im sure you can do it w/ an array, but brain was disengaged during planning, AS PER USUAL ;-)

    SMiTZ