![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |
1
2
3
> perl -Mwarnings -Mstrict -le 'my $x = "2005-01-21"; print($x+1);'
Argument "2005-01-21" isn't numeric in addition (+) at -e line 1.
2006
1
2
3
4
> perl -Mwarnings -Mstrict -le 'my $x = "2005-01-21"; my $y = "2005-01-22"; print($x <=> $y);'
Argument "2005-01-22" isn't numeric in numeric comparison (<=>) at -e line 1.
Argument "2005-01-21" isn't numeric in numeric comparison (<=>) at -e line 1.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -l
use strict;
use warnings;
my @woerter = qw/Âne Anton Ärger Berta Øre Zeppelin acht ätzend billig zwei 42/;
print join ' < ', sort { $a cmp $b } @woerter;
use locale;
print join ' < ', sort { $a cmp $b } @woerter;
_ _END_ _
42 < Anton < Berta < Zeppelin < acht < billig < zwei < Âne < Ärger < Øre < ätzend
42 < acht < Âne < Anton < Ärger < ätzend < Berta < billig < Øre < Zeppelin < zwei
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |