Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File::Path::remove_tree and hash argument list #47

Open
ghostjoad opened this issue Nov 8, 2019 · 0 comments
Open

File::Path::remove_tree and hash argument list #47

ghostjoad opened this issue Nov 8, 2019 · 0 comments

Comments

@ghostjoad
Copy link

Hello,

I have a problem with remove_tree, when used with an optional hash argument. I have noticed that when I write:

my %args_remove_dir = ( verbose => $verbosity );
remove_tree("$BASEDIR/$RS", \%args_remove_dir);

The hash %args_remove_dir has been modified and now contains elements such as inode, prefix, cwd, etc. This means that if I use the same function later to remove another tree, I will get warnings about unrecognised options in remove_tree.

Is there a workaround to this problem ?

Thank you very much for your help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant