- or download this
while (<DATA>) {
chomp;
...
next unless /([^\s]+)/;
push(@enabled_lines, $1);
}
- or download this
while (<DATA>) {
chomp;
s/#.*$//;
push(@enabled_lines, $1) if /([^\s]+)/;
}
- or download this
while (<DATA>) {
chomp;
...
push @enabled_lines, $1
if /(\S+)/;
}