Thread Perl-Anfänge: Umrechnungen (9 answers)
Opened by Gast at 2003-11-05 11:10

esskar
 2003-11-05 11:55
#69215 #69215
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
hier mal ein "gute" Version deines codes

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w

use strict;
use warnings;

my $wann = "";

$wann = $ARGV[0] || <STDIN>;

my ($sek,$min,$hour,$mday) = localtime $wann;
printf("%02i:%02i:%02i:%02i\n", $mday, $hour, $min, $sek);

View full thread Perl-Anfänge: Umrechnungen