Kentaro Kuribayashi's blog

Software Engineering, Management, Books, and Daily Journal.

Entries from 2011-11-11 to 1 day

How to get an arbitrary empty port

Sometimes we want an arbitrary empty port when testing a server program. The code below works for that case. #!/usr/bin/env perl use v5.14; use IO::Socket::INET; sub empty_port () { my $sock = IO::Socket::INET->new( Prot => 'tcp', Listen =…

pmsetup for myself

I forked tokuhirom's pmsetup and added some for myself. https://github.com/kentaro/pmsetup Changes: Removed dependency on Perl 5.14.0 Added explicit lang option for aspell Modified Build.PL to add "X_prepan" info into resources Added `blah…