Thread problem mit TAB getrennter Datenausgabe
(18 answers)
Opened by jan999 at 2010-02-04 08:50
Dann läuft etwas anderes bei Dir falsch, schau:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #!/usr/bin/perl -w use strict; use warnings; open (my $test,'>','test.txt') or die $!; &olpoi_line ('foo','bar','foo2','bar2','foo3','bar3','foo4'); sub olpoi_line { my $file = shift ; my $point = shift ; my $title = shift ; my $dicription = shift ; my $icon = shift ; my $size = shift ; my $offset = shift ; #return if(!defined($point)); $title='' if(!defined($title)); $dicription='' if(!defined($dicription)); $icon='' if(!defined($icon)); $size='20,20' if(!defined($size)); $offset='10,10' if(!defined($offset )); print $test $point."\t".$title."\t".$dicription."\t".$icon."\t".$size."\t".$offset."\n"; }# olpoi_line test.txt: Code: (dl
)
bar foo2 bar2 foo3 bar3 foo4 10 print "Hallo"
20 goto 10 |