Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] Lost in a data structure ...

Expand Messages
  • Glenn Becker
    Dave - ... Fantastic! Exactly what I was looking for. And your commentary on this structure helped, too. Thank you @_@. Best, GB
    Message 1 of 4 , Apr 26, 2007
      Dave -

      > Try running the following program to get a visualization of the data
      > structure. Only the first and last lines are different from the
      > previous program.
      >
      > use Data::Dumper;
      > my %total_bytes;
      > while (<>) {
      > my ($source, $destination, $bytes) = split;
      > $total_bytes{$source}{$destination} += $bytes;
      > }
      > print Dumper(\%total_bytes);

      Fantastic! Exactly what I was looking for. And your commentary on this
      structure helped, too. Thank you @_@.

      Best,

      GB
    Your message has been successfully submitted and would be delivered to recipients shortly.