in reply to Re: Re: Hashing: Argument "" isn't numeric in sort
in thread Hashing: Argument "" isn't numeric in sort
The string "465.274" is converted to a number when needed by perl, so that should not give you this warning, as the following code shows:
#!/usr/bin/perl -wl use strict; my @array = qw(465.274 21893.32 72.37); # qw creates quoted strings print for (sort {$a <=> $b} @array);
output:
72.37 465.274 21893.32
No warnings at all.
Joost
-- #!/usr/bin/perl -np BEGIN{@ARGV=$0}s(^([^=].*)|=)()s; =Just another perl hacker\
|
|---|