in reply to Restoring a Data Structure from a File

You could switch to a serialization format that while readable and easily manipulated by hyoomons doesn't require direct parsing by the Perl interpreter (say YAML or XML).

  • Comment on Re: Restoring a Data Structure from a File

Replies are listed 'Best First'.
Re^2: Restoring a Data Structure from a File
by cmv (Chaplain) on Nov 02, 2007 at 14:31 UTC
    fletch-

    GREAT idea! Many thanks. I knew someone here would shine a light down one or two of the dark alleys that I never bother to turn the lights on for.

    BTW: What is a hyoomon (and how do you pronounce it)? All my searches turn up folks using it, but no one with a definition.

    Never heard that one before...

    -Craig

    UPDATE:
    XML::Simple doesn't work because I can't use @ in my hash key names. As stated in the docs: hash keys from the data structure will be encoded as either XML element names or attribute names. Therefore, you should use hash key names which conform to the relatively strict XML naming rules..."

    YAML::Syck Seems to work fine.

    PS - Thanks for the help with huh-yoo-man too. I love it!