in reply to Re: rmtree deletes everything inside the folder but doesn't deletes the root folder him self
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self

Thanks for replying, I've tried to follow your suggestion,and I've recieved error:
Useless use of subtraction (-) in void context at C:\Perl\ArcUpdFdr.pl line 64.
Bareword "rm" not allowed while "strict subs" in use at C:\Perl\ArcUpdFdr.pl line 64.
Can you tell me, how can I use this function, I couldn't find the help on it. Tnanks!
  • Comment on Re: Re: rmtree deletes everything inside the folder but doesn't deletes the root folder him self

Replies are listed 'Best First'.
Re^3: rmtree deletes everything inside the folder but doesn't deletes the root folder him self
by Anonymous Monk on Jan 06, 2010 at 17:25 UTC
    that's not a bare word. put it in backticks! `rm -rf /dir/`;