in reply to Re: How to convert Storable object back to a hash
in thread How to convert Storable object back to a hash
No examples as I have not tried it yet (not for any particular reason).
It's pretty simple:
# Old-style dereferencing: my %hash = %$ref; my %hash = %{ $ref }; # New-style dereferencing: my %hash = $ref->%*;
In most projects I use the old style because I'm familiar with it, and I often need compatibility with older Perls. I do agree that the new style is usually more readable (despite having more punctuation characters).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to convert Storable object back to a hash
by cavac (Prior) on Jun 26, 2023 at 09:21 UTC |