|< 1 2 >| | 11 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
use strict;
my $date = "Date: 10.04.2006";
my $time = "Time: 05:09:31.192";
$time =~ s/\D//g;
my $dt = substr($date, 12, 4).substr($date, 9, 2).substr($date, 6, 2).$time;
print $dt;
1
2
3
4
5
6
7
my $string_date = 'Date: 10.04.2006';
my $string_time = 'Time: 05:09:31.192';
my ($day,$month,$year) = $string_date =~ /(\d+)\.(\d+)\.(\d+)/;
$string_time =~ s/[^\d]//g;
my $result = $year.$month.$day.$string_time;
print $result;
|< 1 2 >| | 11 Einträge, 2 Seiten |