fork download
  1. #!/usr/bin/perl6
  2.  
  3. while (($_ = $*IN.get) != 42) { say $_ }
  4.  
Success #stdin #stdout 0.29s 81224KB
stdin
1
2
10
42
11
stdout
1
2
10