in reply to Re: hashes with multiple keys
in thread hashes with multiple keys

thanks but how can I do that without hardcoding the volume name and size? Meaning my output is hundreds of lines that and I wnat to be able to run it against other files with similar output but different values.

Replies are listed 'Best First'.
Re^3: hashes with multiple keys
by kennethk (Abbot) on Feb 27, 2009 at 22:00 UTC
    Based on your initial post, I assume you are already comfortable with file I/O. In order to generate your volume hash, you just need to start by putting an anonymous array in each hash entry and then populate it with a series of pushes. There are some reasonable examples in perllol.
Re^3: hashes with multiple keys
by annie06 (Acolyte) on Feb 27, 2009 at 21:53 UTC
    to be clear, I meant that I want my perl script to step through the output and build this list for me.