Cool. Thank you!
But now I have decided to print fields 1 and 4, however I cannot get past this error:
Use of uninitialized value in concatenation (.) or string at san_relat
+ion.plx line 81, <$output> line 3.
# @vpaths contains vapt0..vpath##
for my $vps (@vpaths) {
print "\n";
open my $output, "lspv -l $vps |" or die $!;
#<$output>;
#<$output>;
for (<$output>) {
next if m[distribution|n/a]i;
next unless defined;
print Dumper(my ($f1,$f4) = (split)[0, 4]);
print "$f1\t$f4\n";
#print +(split)[0],"\n";
#print +(split)[4],"\n";
}
print "\n";
#system("odmget -q name=$vps 'CuAt'|grep -p pvid");
}
from the Dumper output VAR2 is the problem
$VAR1 = 'vpath0:';
$VAR2 = undef;
Use of uninitialized value in concatenation (.) or string at san_relat
+ion.plx line 81, <$output> line 3.
vpath0:
$VAR1 = 'lvREPdata10';
$VAR2 = '/db2/REP/sapdata10';
lvREPdata10 /db2/REP/sapdata10
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.