Thread festes Spaltenformat einlesen (2 answers)
Opened by Gast at 2007-03-05 14:12

renee
 2007-03-05 14:40
#74773 #74773
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -T

use strict;
use warnings;
use CGI;
use CGI::Carp qw(fatalsToBrowser);

print CGI::header();

while(my $line = <DATA>){
chomp $line;
my @cols = unpack("A8A8A8A8",$line);
print join(";",@cols),"<br />";
}

__DATA__
#2345678_2345678_2345678_2345678
Q4 12301 -52.89 1e-01
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread festes Spaltenformat einlesen