Calling UNIVERSAL::can() as a function is allowed. (was: [OT] best way to determine existence of a function in a package)

chromatic chromatic at wgz.org
Wed Nov 21 21:31:53 GMT 2007


On Wednesday 21 November 2007 12:47:32 Jonathan Stowe wrote:

> UNIVERSAL::isa() as a function is a perfectly sensible way of
> determining whether a reference you have been handed is of the type that
> you require.

Because $Larry knows there's *no* way to tie or overload a variable so that it 
behaves just like a hash.

Maybe someday someone will invent a programming language that doens't require 
you to know and enforce a specific type of memory layout for your variables.  
Wouldn't that be just swell?

-- c


More information about the london.pm mailing list