Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use v6;
- loop {
- if $*IN.eof {
- say 'reopen';
- $*IN = open($*IN.path, :r);
- }
- my $s = $*IN.Supply;
- react {
- whenever $s -> $buf {
- print $buf;
- LAST {
- say 'got eof';
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement