Hi all,

I'm writing a small script to collect info from various system commands 
to produce a small meaningfull report on our AIX box.

I have a hash %pvolumes which lists all my physical volumes, and I can 
add scalars to it no problem, e.g.

$pvolumes{$pvolume}->{vgroup}=$vgroup;

however, I want to have  an array containing the logical volumes held 
on the phsical one, but I can't get the syntax right.  I tried

push @$pvolumes{$pv}->{volumes},"$lv:$lp:$pp:$dist";
push $pvolumes{$pv}->{volumes},"$lv:$lp:$pp:$dist";

and

push @$pvolumes{$pv}->{volumes},"$lv:$lp:$pp:$dist";


-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 
    

Reply via email to