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

Re: Perl under windows: mysteriously skipping over subroutine

by mr_mischief (Monsignor)
on Apr 23, 2008 at 16:15 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-29 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?