Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Breaking Tie::Hash into three modules

by afoken (Canon)
on Sep 10, 2018 at 19:50 UTC ( #1222083=note: print w/replies, xml ) Need Help??


in reply to Re^2: Breaking Tie::Hash into three modules
in thread Breaking Tie::Hash into three modules

How would that work? The three packages have different behavior that can't be combined.

Read Re: Breaking Tie::Hash into three modules again.

shmem++ proposes to merge Tie::StdHash into Tie::Hash, Tie::StdArray into Tie::Array, and Tie::StdScalar into Tie::Scalar.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: Breaking Tie::Hash into three modules

Replies are listed 'Best First'.
Re^4: Breaking Tie::Hash into three modules
by Haarg (Curate) on Sep 12, 2018 at 11:00 UTC

    The post reads:

    making the three modules into just one: Tie::Hash

    To me this means merging Tie::Hash, Tie::StdHash, and Tie::ExtraHash into a single package. That can't be done because Tie::ExtraHash uses a different internal storage, and Tie::Hash implements a CLEAR method that is useful for subclasses that don't use the same storage as Tie::StdHash.

    Similar things are true for the other modules. Tie::Scalar is maybe the only one that could be merged, but arguably the current Tie::Scalar package serves no purpose.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1222083]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-05-30 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?