in reply to Re: unlink($ful) does not delete
in thread unlink($ful) does not delete

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

Replies are listed 'Best First'.
Re^3: unlink($ful) does not delete
by Rudif (Hermit) on Dec 07, 2007 at 20:12 UTC
    As a matter of interest what is the significance of this construction: ( $fnmi =~ /^someword$/ )?

     ( $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.

    Rudif

      Thanks for the direction. That's the next thing I needed to find out about.