in reply to AIX harddisk sum of storage

my $space  = $SSH root\@$one for i in lspv | awk '{print \$1}';

It looks to me like everything past $SSH is going to be seen as barewords on this line. There is a lot being attempted so maybe the best approach is to simplify. Comment out two thirds of this code and get it working before adding in each line one at a time. For us to help you please show a complete program, using warnings and strict, and provide the warnings and errors you are seeing.