Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: unlink($ful) does not delete

by daithimcc (Novice)
on Dec 07, 2007 at 18:13 UTC ( [id://655711]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://655711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-16 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found