tokuhirom (owner)

Revisions

gist: 175954 Download_button fork
public
Public Clone URL: git://gist.github.com/175954.git
Embed All Files: show embed
hoge.pl #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;
use Test::TCP;
use File::Which qw/which/;
 
test_tcp(
    client => sub {
        my $port = shift;
        # your test code here.
    },
    server => sub {
        my $port = shift;
        exec(which('memcached'), '-p', $port);
        die "should not reach here";
    },
);