package RDA::Extern::Proto; # $Id: Proto.pm,v 1.6 2009/01/13 17:05:59 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/RDA/Extern/Proto.pm,v 1.6 2009/01/13 17:05:59 mschenke Exp $ # # Change History # 20090113 MSC Change the copyright notice. =head1 NAME RDA::Extern::Proto - Class used as external Perl macro prototype =head1 SYNOPSIS require RDA::Proto; =head1 DESCRIPTION Objects of the C class can be used as example of external Perl macros. The following methods are available: =cut use strict; BEGIN { use Exporter; use RDA::Object::Data; } # Define the global public variables use vars qw($VERSION); $VERSION = sprintf("%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/); # Define the global private variables # Report the module version number sub Version { $VERSION; } =head2 S The routine dumps the argument list. =cut sub dump { my $ctx = shift; RDA::Object::Data::dump({'@_' => [@_]}); } =head2 S The routine reports the module version. =cut sub version { my ($ctx, $typ) = @_; my ($maj, $min) = split(/\./, $VERSION); if ($typ) { return [$VERSION, undef, $maj, $min] if $typ eq 'A'; return [{Version => [$maj, $min]}] if $typ eq 'C'; return {Version => [$maj, $min]} if $typ eq 'H'; return undef if $typ eq 'U'; } $VERSION; } =head2 S The routine writes the arguments in the current report. Arguments other than numbers and strings are simply ignored. An end of line is added at the end of the resulting string. =cut sub write { my $ctx = shift; print {$ctx->get_handle} join('', grep {$_ && !ref($_)} @_)."\n"; } 1; __END__ =head1 SEE ALSO L, L =head1 COPYRIGHT NOTICE Copyright (c) 2002-2009, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut