in reply to select elements in a list
#!/usr/bin/perl use strict; use warnings; use diagnostics; my $file = shift; open (F,"<$file") or die "Can't open $file: $!"; while (<F>) { $_ !~ /;\s+;/ and print $_; } [download]