#!perl use strict; use warnings; use Test::More qw( no_plan ); my $obj = GlobTest->new(); isa_ok( $obj, 'GlobTest' ); for my $method ( 0..9 ) { can_ok( $obj, $method ); } package GlobTest; BEGIN{ for my $method ( 0..9 ) { no strict 'refs'; *$method = sub { return $_ }; } } sub new { bless {}, shift } #### perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(join(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'