Piers Cawley wrote:
> 
> By declaring a variable as being one of many types you throw away any
> possible compile time optimizations that may be possible (unless you
> add the restriction that said types have a common interface...)
> 
> Note that a possible syntax for doing what you want could be:
> 
>    my Pet $fluffy : isa(any(qw/Dog Cat/));

Something like that works for me.

-Nate

Reply via email to