Current Path : /usr/local/lib/perl5/site_perl/5.8.9/mach/DateTime/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/perl5/site_perl/5.8.9/mach/DateTime/Helpers.pm |
package DateTime::Helpers; use strict; use Scalar::Util (); sub can { my $object = shift; my $method = shift; return unless Scalar::Util::blessed($object); return $object->can($method); } sub isa { my $object = shift; my $method = shift; return unless Scalar::Util::blessed($object); return $object->isa($method); } 1; __END__ =head1 NAME DateTime::Helpers - Helper functions for other DateTime modules =head1 AUTHOR Dave Rolsky <autarch@urth.org> However, please see the CREDITS file for more details on who I really stole all the code from. =head1 COPYRIGHT Copyright (c) 2003-2006 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut