Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl under windows: mysteriously skipping over subroutine

by mr_mischief (Monsignor)
on Apr 23, 2008 at 16:15 UTC ( [id://682414]=note: print w/replies, xml ) Need Help??


in reply to Perl under windows: mysteriously skipping over subroutine

What is the value of $force when pathrm() gets to the line pathempty($cur) if $force;?

If the condition is false (numeric zero, undef, or the empty string for example), then the call won't be made.

The docs for pathrm() state "An optional second argument makes it call pathempty() before any rmdir()'s when set to true.", so you might want to check and make sure that argument is present and true.

See also $File::Copy::Recursive::RMTrgFil for more ifno on why things might not be what they seem.

Posting some code you've tried might help us help you. Reading some docs and code might help you help yourself.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found