http://www.perlmonks.org?node_id=1008787


in reply to extracting data from a file

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: extracting data from a file
by davido (Cardinal) on Dec 14, 2012 at 08:58 UTC

    Huh?

    What is the hash for?

    And take a closer look at what's in @array. By changing "print "@array\n"; to "print Dumper @array;", you will see that @array contains extra elements that result from splitting on the quote character as if it were a simple delimiter rather than a balanced construct.

    Also, given the OP's data set, there's no reason for the $hash{ssss} element to even exist.

    This is a broken solution.


    Dave