Leser: 1
5 Einträge, 1 Seite |
1 2 3 4 5 6 7
open (PlotJ,">$jitter.dat") || die "log.txt file found!"; my @inpud = <PlotJ>; // close(PlotJ); Gnuplot(@inpud); // Mein Unterprogrammaufruf
1 2 3 4 5 6
sub Gnuplot { my $i; for($i=0;$i<@_;$i++){ print " Inhalt: $_[$i]\n"; }
my @inpud = (2,9,12,43,2,3,1);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/perl use strict; use warnings; my $file = 'jitter.dat'; # datei einlesen open my $fh, '<', $file or die "$file: $!\n"; my @input = <$fh>; close $fh; # zeilenumbrueche entfernen chomp @input; Gnuplot( @input ); sub Gnuplot { my ( @data ) = @_; for my $value ( @data ) { print "Inhalt: $value\n"; } } __END__
johnh+2008-10-14 10:45:23--Code (perl): (dl )1 2open (PlotJ,">$jitter.dat") || die "log.txt file found!"; my @inpud = <PlotJ>;
johnh+2008-10-14 12:28:38--@pg:
5 Einträge, 1 Seite |