Help for this page
if ( $line =~ /[^\s]XY/ ) { ... }
while ( <FILE> ) { next if /^\s/; # process lines without leading whitespace here ... }