Don't ask to ask, just ask | |
PerlMonks |
Re: Idiomatic Perl?by karthiknix (Sexton) |
on Mar 20, 2018 at 15:45 UTC ( [id://1211348]=note: print w/replies, xml ) | Need Help?? |
Code seems to work, but it is better in PERL way as below.
Code Change at line "my $answer = ($str =~ /$pattern/);" will look for the pattern in $pattern in the string $str and will result in yes or no.
In Section
Seekers of Perl Wisdom
|
|