in reply to Re^8: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype)
in thread Why reftype and blessed are making my life harder than it needs to be

Don't make a new name, change the behavior at 'use' time. For example, if a module version number of at least X is demanded, then backward compatability behavior would not be required (so the function with saner behavior would be exported).

- tye        

  • Comment on Re^9: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype) (breaking compat)

Replies are listed 'Best First'.
Re^10: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype) (breaking compat)
by demerphq (Chancellor) on Feb 10, 2006 at 15:38 UTC

    Thats a great idea. Im just wondering how you would implement that? A custom import? Or something else?

    ---
    $world=~s/war/peace/g

      See use, look for "VERSION". You need only define your own "sub VERSION", though this unfortunately might not be thread-safe (or as easy as it could be if 'import' and 'VERSION' weren't separated). Though I guess you could just use a hash keyed off the path of the including file...

      - tye