The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package JavaBin 0.9;

use strict;
use warnings;

use XSLoader;

XSLoader::load();

sub import {
    shift;

    my $pkg = caller . '::';

    no strict 'refs';

    *{ $pkg . $_ } = \&$_ for @_ ? @_ : qw/from_javabin to_javabin/;
}

1;