ищет помощь Perl.Я не хорош с регулярными выражениями.Но вот в основном мне нужна помощь:
-strip out the leading blank line
-regex for any value after the directory `/foo/bar/set`, excluding trailing spaces
Ожидаемый результат:
55
proxy
test.event.done
Тестовый входной файл:
<leading blank :line here>
/foo/bar/set/55
/foo/bar/set/proxy
/foo/bar/set/test.event.done
Код:
while(my $line=<>) {
chomp($line);
if ($line =~ m#foo/bar/set/(not sure what to match here) {
print "$line\n";
}
}