Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created March 20, 2017 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/353048bee9629d82b003bb73de92523d to your computer and use it in GitHub Desktop.
Save zoffixznet/353048bee9629d82b003bb73de92523d to your computer and use it in GitHub Desktop.
zoffix@VirtualBox:/tmp/tmp.Ml3FXzhEEk$ perl6 -e 'my @s; for ^2000 { @s.unshift: "foo".IO.lines; @s[0]; $ = 1 }'
Failed to open file /tmp/tmp.Ml3FXzhEEk/foo: too many open files
in block <unit> at -e line 1
Actually thrown at:
in block <unit> at -e line 1
zoffix@VirtualBox:/tmp/tmp.Ml3FXzhEEk$ perl6 -e 'my @s; for ^2000 { @s.unshift: "foo".IO.lines; @s[0].sink }'
zoffix@VirtualBox:/tmp/tmp.Ml3FXzhEEk$ perl6 -e 'my @s; for ^2000 { @s.unshift: "foo".IO.lines; sink @s[0] }'
zoffix@VirtualBox:/tmp/tmp.Ml3FXzhEEk$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment