Also I can test if the file exists, using the variable, -e $fnmi and I get true.
Sorry that was a mistake
Should have been -e $ful
I believed that this was testing the existence of a file whose path is contained as a string in the variable.
As a matter of interest what is the significance of this construction:
( $fnmi =~ /^someword$/ )?
Thanks