SirClive has asked for the wisdom of the Perl Monks concerning the following question:
Thanksuse strict; use warnings; while(my $line = <DATA>) { chomp($line); if( $line =~ /(?<!fee).*[Bb]ar.*\.java/ ) { print $line . "\n"; } } __DATA__ foo/src/com/stuff/xxxxxx.java foo/src/com/stuff/ggbargg.java foo/src/com/stuff/ggBargg.java fee/src/com/stuff/ggbargg.java fee/src/com/stuff/ggBargg.java
|
|---|