Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if someone could help me, its probably a really stupid question but Im new to perl so please bare with me
I have a text file and I opened each line into an array value. what I need to do is search each array value and if it contains a string then I do something... example:
if ($foo contains 'bar'){
print "foo contains bar";
}
I have a text file and I opened each line into an array value. what I need to do is search each array value and if it contains a string then I do something... example:
if ($foo contains 'bar'){
print "foo contains bar";
}
Back to
Seekers of Perl Wisdom