in reply to Re^5: How can I read DATA in parent and child?
in thread How can I read DATA in parent and child?
I've run it 20 times, it returned 15 lines 18 times, but only 10 lines 2 times.
#!/bin/bash i=1 while : ; do n=$( 1230099.pl | wc -l ) (( n == 15 )) || break printf '%d\r' $((i++)) done echo "$i:$n"
It stopped after four another iterations with only 10 lines of output.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: How can I read DATA in parent and child?
by Skeeve (Parson) on Feb 19, 2019 at 10:25 UTC | |
by tybalt89 (Monsignor) on Feb 19, 2019 at 16:41 UTC | |
by Skeeve (Parson) on Feb 20, 2019 at 07:06 UTC | |
by tybalt89 (Monsignor) on Feb 20, 2019 at 10:06 UTC | |
by hippo (Bishop) on Feb 20, 2019 at 09:09 UTC | |
Re^7: How can I read DATA in parent and child?
by Skeeve (Parson) on Feb 19, 2019 at 10:46 UTC | |
by tybalt89 (Monsignor) on Feb 20, 2019 at 10:33 UTC |
In Section
Seekers of Perl Wisdom