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
- IDEA: my() extensions and attribute declarations Nathan Wiger
- Re: IDEA: my() extensions and attribute declaration... Bryan C . Warnock
- Re: IDEA: my() extensions and attribute declaration... Piers Cawley
- Re: IDEA: my() extensions and attribute declara... Nathan Wiger
- Re: IDEA: my() extensions and attribute declaration... Alan Gutierrez