open(my $FILE, '<', $fn) or warn "Can't open $fn\n" && return;
my @keys = ();
while (my $line = <$FILE>) {
- if (my ($key) = $line =~ m/help_text\(\s*['"](.*)['"]\s*\)/) {
+ foreach my $key ($line =~ m/help_text\(\s*['"](\w+)['"]\s*\)/g) {
push @keys, $key;
}
}