Re: array inside a hash

2001-05-31 Thread M.W. Koskamp
- Original Message - From: Gary Stainburn <[EMAIL PROTECTED]> To: Perl Beginners <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 1:21 PM Subject: array inside a hash > Hi all, > > I'm writing a small script to collect info from various system commands > to produce a small meaningfull r

Re: array inside a hash

2001-05-31 Thread Ondrej Par
Hi, correct is: $pvolumes{$pv}->{volumes} ||= []; ## create empty array if it wasn't yet used push @{$pvolumes{$pv}->{volumes}}, "$lv:$lp:$pp:$dist"; On Thursday 31 May 2001 13:21, Gary Stainburn wrote: > Hi all, > > I'm writing a small script to collect info from various system commands > to p