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

Andy Wardley abw at wardley.org
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.

A





More information about the london.pm mailing list