Today around 12:01pm, Nathan Torkington hammered out this masterpiece: : Casey R. Tweten writes: : > Leave length() the way it is now and, if one so desires, they may : > override it on there own to use length for getting: : : Not that helpful a suggestion for beginners. They don't know how to : override, or often even how to load a module. The point is not that : there's already a way to do it, but that the existing way doesn't make : sense. Ok, consider allowing: $a = length @b; to DWIM, however, when running with warnings, warn the user that C<scalar> is what they really want. Just thowing that out there. -- print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=> 'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n"; print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig}; my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot EDU>
- 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
- Re: Uninitialized value warni... Michael Fowler
- Re: Uninitialized value warni... Tom Christiansen
- Re: Uninitialized value warni... Tom Christiansen
- Re: Uninitialized value warni... Bart Lateur