Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 5, 2018 20:32
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 Whateverable/9bbf830b1ad9fd750e3e84fa3cfa9981 to your computer and use it in GitHub Desktop.
Save Whateverable/9bbf830b1ad9fd750e3e84fa3cfa9981 to your computer and use it in GitHub Desktop.
evalable6
my IO::Socket::INET $c .= new: :!listen, :localhost<localhost>, :0localport; $c.close
(exit code 1)
Earlier failure:
Nothing given for new socket to connect or bind to. Invalid arguments to .new?
in block <unit> at /tmp/PvxzCYhpGz line 1
Final error:
Type check failed in assignment to $c; expected IO::Socket::INET but got Failure (Failure.new(exception => X::...)
in block <unit> at /tmp/PvxzCYhpGz line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment