programming-examples/perl/Regular_Expression/Case.pl

19 lines
168 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Match case!
#!/usr/bin/perl -w
use strict;
$_ = "Case";
if (/case/) {
print "found\n";
} else {
print "not found\n";
}