Leser: 19
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use strict;
use warnings;
my @t = localtime(time);
#sollte Stunden, Minuten, Sekunden ausgeben
print @t[2-0], "\n";
print @t[2..0], "\n";
print "-------------------\n";
print @t[0-2], "\n";
print @t[0..2], "\n";
QuoteRange Operators
Binary ".." is the range operator, which is really two different operators depending
on the context. In list context, it returns a list of values counting (up by ones)
from the left value to the right value. If the left value is greater than the right
value then it returns the empty list.
2010-05-16T16:10:28 pqwarum das so implementiert ist, kann ich dir allerdings auch nicht sagen =)