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

add PATH method? #1

Open
djerius opened this issue Jul 28, 2021 · 1 comment
Open

add PATH method? #1

djerius opened this issue Jul 28, 2021 · 1 comment

Comments

@djerius
Copy link

djerius commented Jul 28, 2021

I've recently been traversing Data::Hive structures, and in doing so find myself maintaining a copy of the path to each sub-hive that I'm visiting. This is redundant, as each sub-hive already has a copy of its path.

Is there any appetite for adding a PATH method, such that

$hive->ROOT->HIVE( $hive->PATH ) == $hive?

I'm happy to contribute code for this.

Thanks,
Diab

@rjbs
Copy link
Owner

rjbs commented Jan 1, 2023

Well, it's been a million years, but: sure, as long as it's a shallow copy, not the same ref!

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

2 participants