- or download this
my $string = "Hello World";
if ($string =~ /Hello/) {
print "Basic String contains: Hello\n";
}
- or download this
my $string = "\"Hello\" World";
...
my $string = q{"Hello" World};
my $string = qq{"Hello" World};
- or download this
if ($string =~ /"Hello"/) {
print "Basic String contains: Hello\n";
}