|
Hello,
I'm trying to search through a string for certain letters, i.e. the string might be jaskdjflsstringjksalfd;dsa and I search for string.
Can someone please point me in the right direction?
Thanks.
|
|
|
$sentence = "lets go for coffee";
if($sentence =~ /coffee/i)
{
print STDOUT "the string contains the word coffee.\n";
}
|
|
|
|
|
|
|
// |