in reply to Printing out a hash in specified format

Why build the hash at all? Just print the values instead of putting them in the hash.
  • Comment on Re: Printing out a hash in specified format

Replies are listed 'Best First'.
Re^2: Printing out a hash in specified format
by Anonymous Monk on Aug 08, 2010 at 17:04 UTC
    That's what I thought too..But if I'm reading line by line and need to bucketize a set of data for every backup set, then wouldn't the array or hash be useful for this?
      Hashes are good for grouping (using the SQL term) if that's what you mean. Specifically, a hash of server of hashes backup sets of arrays of status records.
      $backup_status{$server}{$backup_set}[$backup_set_idx]{$field_name}