Leser: 25
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
28
29
30
31
32
33
34
35
main.pl:
#!/usr/bin/perl
use strict;
$|++;
my $pipetest = undef;
open (my $fh, "/home/s0nyc/tama/tamawork.pl |") or die "ups... $!";
while(<$fh>){
if ($_ == 10){
chomp;
if ($pipetest eq ''){
$pipetest = "Keine Eingabe";
}
print "JA $pipetest $_";
}
}
tamawork.pl:
#!/usr/bin/perl
use strict;
use warnings;
$|++;
my $zaehler = 1;
while (1){
$zaehler ++;
print "$zaehler\n";
sleep 1;
if ($zaehler == 25){
print "Endeee\n";
exit;
}
}
chomp (my $pipetest = <STDON>);
QuoteCode: (dl )if ($pipetest eq undef){