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

Re: [PBML] Printing %HoA

Expand Messages
  • Jeff 'japhy' Pinyan
    ... You need to print @$v. -- Jeff japhy Pinyan japhy@pobox.com http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/
    Message 1 of 2 , Jan 28, 2003
      On Jan 28, Joe Catanzaro said:

      >I'm trying to print a hash of arrays and all it prints array(0x12345) for
      >the value of the hash. I'm using O'reilly's Perl Cookbook, recipe 5.5:
      >
      >while ( ($k,$v) = each %hash ) {
      > print "$k => $v\n";
      >}

      You need to print @$v.

      --
      Jeff "japhy" Pinyan japhy@... http://www.pobox.com/~japhy/
      RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
      <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
      [ I'm looking for programming work. If you like my work, let me know. ]
    Your message has been successfully submitted and would be delivered to recipients shortly.