in reply to Re^6: Regular expression match in code
in thread Regular expression match in code

The easist explanation is that your open call fails. Since you don't check the return value, it does that silently.
open my $fh, '<', $configFile or die "Can't open '$configFile' for reading: $!"; my @allServers; while (<$fh>) { push (@allServers, $_) if /^\w/; } close $fh or warn "Error while closing file: $!";
Perl 6 - links to (nearly) everything that is Perl 6.