Nathan Torkington wrote:
>
> I think we're going to have to see prototypes extended to cope with
> functions like this, anyway. I'll mention this requirement in the
> next version of the RFC.
Brainstorming off the top of my head:
sub length (($|@)) {
}
That is, use a regex-like "(x|y)" - or maybe [$@%] ?? - for alternative
context coercions.
-Nate
- Re: RFC 212 (v1) Make length(@array) work Hildo Biersma
- Re: RFC 212 (v1) Make length(@array) work Bart Lateur
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Dave Storrs
- Re: RFC 212 (v1) Make length(@array) work Casey R. Tweten
- Re: RFC 212 (v1) Make length(@array) work Randal L. Schwartz
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Casey R. Tweten
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) w... Nathan Wiger
- Re: RFC 212 (v1) Make length(@arr... Nathan Torkington
- Re: RFC 212 (v1) Make length(... Tom Christiansen
- Re: RFC 212 (v1) Make length(@arr... Damian Conway
- Re: RFC 212 (v1) Make length(@array) w... Casey R. Tweten
- Re: RFC 212 (v1) Make length(@arr... Nathan Torkington
- Re: RFC 212 (v1) Make length(... Casey R. Tweten
- Re: RFC 212 (v1) Make length(... Randal L. Schwartz
- Uninitialized value warnings ... Nathan Wiger
- Re: Uninitialized value warni... Nathan Torkington
- Re: Uninitialized value warni... Nathan Wiger
