Calling UNIVERSAL::can() as a function is allowed.

Andy Wardley abw at
Thu Nov 22 07:34:31 GMT 2007

chromatic wrote:
>> It says in the
>> official documentation that UNIVERSAL::can *can* be called as a function.
> Not anymore.

Fair enough.  Probably about time, too.  Although strictly speaking, it does
still says that you can call U::can as a function, but warns:

   ...however it is usually harmful to do so.  Please don't do this in
   new code.

So it's still valid, but officially Not Recommended.


More information about the mailing list