# from John Peacock
# on Saturday 27 January 2007 09:40 am:

Hi John,

Is the Scalar::Util dependency justified?  'yes' is a fine answer, I'm 
just not certain what it's compatibility is.

>3) I am considering adding:
>
>       use version $VERSION => '1.002';
>
>as an alternate syntax for
>
>       use version; $VERSION = version->new('1.002');
>
>but this will require that M::B (and EU::MM) support this syntax.  You
> can see the propose code commented out in the patch.

Taking advantage of $_[1] being an alias to $VERSION in import() seems a 
little sneaky, and possibly fragile.  Does the '$VERSION => 1.2.0' 
syntax work with PAUSE/etc?

What about

  use version $VERSION = 1.2.0;

$_[0] = version->new($_[0]); ?

--Eric
-- 
If the above message is encrypted and you have lost your pgp key, please
send a self-addressed, stamped lead box to the address below.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to