in reply to Re^2: select elements in a list
in thread select elements in a list
So try it like this (similar to what was suggested in a later reply below):
while (<INFILE>) { my @Elements = split(/;/,$_); if ($Elements[1] =~ /\S/){ # if second arg contains non-whitespac +e print OUTFILE; # ("$_" is implied here) } }
|
|---|