in reply to Re: Proper way to work with columns
in thread Proper way to work with columns

Hi huch,

Thanks, it looks like the way I was looking for. I think the line 29:

for my $i (1..$ncols) { $disk_data{$dev{$colnames[$i]}=$cols[$i] +;}

should be:

for my $i (1..$ncols) { $disk_data{$dev{$colnames[$i]}=$cols[$i] +$i;}

Am I correct?

Replies are listed 'Best First'.
Re^3: Proper way to work with columns
by huck (Prior) on Dec 28, 2016 at 10:54 UTC

    Hi nikita.af, no, the line should be

    for my $i (1..$ncols) { $disk_data{$dev}{$colnames[$i]}=$cols[$i]; }
    If you use the download link you will get the real code. The lone + you reference is part of a continuation line indicator provided as a wraparound indicator by the <code>...</code>deliminator

      My bad, thanks a lot for all advises!