X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=rf433rcv%2Fpc%2Fdecode2.pl;h=70ce6c2dff61d294645166a38e330e9a72ac9198;hp=4d81139aa2f542f3d24249d7434be33a9fd5af54;hb=5b00dab1a7d2ac2d8a593f0bd6e85a7194e2c9bd;hpb=f505a1c37ea1c76897991f9882de765e34f0cc98 diff --git a/rf433rcv/pc/decode2.pl b/rf433rcv/pc/decode2.pl index 4d81139..70ce6c2 100755 --- a/rf433rcv/pc/decode2.pl +++ b/rf433rcv/pc/decode2.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl use strict; -print $ARGV[2]-$ARGV[1], "samples\n"; -my @data = split /,/,<>; +print STDERR $ARGV[2]-$ARGV[1], "samples\n"; +my @data = split //,<>; my @samples = $ARGV[0]..$ARGV[1]; -print join ',', @data[@samples]; -print "\n"; +print join '',@data[@samples]; +print STDERR "\n";