( $fnmi =~ /^someword$/ ) is a pattern match, which happens to be equivalent to ( $fnmi eq 'someword' ).
To understand why so, start reading about regular expressions and matching in perlrequick, and read more in perlretut and perlre.
In reply to Re^3: unlink($ful) does not delete
by Rudif
in thread unlink($ful) does not delete
by daithimcc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |