# from Andreas J. Koenig
# on Saturday 17 November 2007 01:54:

>A different and slightly less brute fix would probably be to say
>version::->new() like I do on all package names always everywhere
>because it's the only safe way to call a method on a package name that
>has no colons in it.

Well, or any package whatsoever.

  $ perl -e 'use strict; use warnings; sub foo::bar () {"this"}; 
    foo::bar->new'
  Can't locate object method "new" via package "this"

--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