10 lines
182 B
Perl
10 lines
182 B
Perl
|
#!/usr/bin/perl
|
||
|
|
||
|
foreach (<STDIN>){
|
||
|
chomp;
|
||
|
if (/gao/){
|
||
|
print "$_ was matched 'gao'\n";
|
||
|
}
|
||
|
}
|
||
|
# echo -e 'hello gao\n sdfj \ngao gao gao \ngao lllll' | perl 5re.pl
|