#!/usr/bin/perl
use strict;
my ($tmpstring) = 'Newbie';
if ($tmpstring =~ /Newbie/) {
print "\$tmpstring has Newbie in it\n";
} else {
print "\$tmpstring does not have Newbie in it\n";
}
if ($tmpstring =~ /newbie/) {
print "\$tmpstring has newbie in it\n";
} else {
print "\$tmpstring does not have newbie in it\n";
}
exit;
Results:
$tmpstring has Newbie in it
$tmpstring does not have newbie in it
|