in reply to Re: Another "Find the bug!" Node
in thread Another "Find the bug!" Node

dclone is not needed for @EXPORT_OK.

Replies are listed 'Best First'.
Re^3: Another "Find the bug!" Node
by diotalevi (Canon) on Sep 27, 2006 at 17:49 UTC

    It is good policy to not care about the contents. Of course it isn't needed: I can see that. Once I'd already paid the cost of loading getting Storable::dclone it made sense to apply it consistently to the problem. Anything less would be kind of irresponsible.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Are you suggesting dclone should be used on all assignments when its loaded? The content of @EXPORT_OK is treated as strings. It's not a problem if two @EXPORT_OK have "HASH(0x1abef80)" in them, so dclone is not needed, and not using it is not irresponsible.

        Oh, ok. I just figured that once I'd already decided that I was going to be "don't care" about the contents I'd be that way in the other copies.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊