projects
/
Business-OnlinePayment-LinkPoint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9f2d3d1
)
eliminate warnings about redefined subroutines
author
ivan
<ivan>
Tue, 26 Feb 2002 08:53:52 +0000
(08:53 +0000)
committer
ivan
<ivan>
Tue, 26 Feb 2002 08:53:52 +0000
(08:53 +0000)
Changes
patch
|
blob
|
history
LinkPoint.pm
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index
9e83e3f
..
056b4f6
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,6
+1,7
@@
Revision history for Perl extension Business::OnlinePayment::LinkPoint.
0.02 unreleased
Revision history for Perl extension Business::OnlinePayment::LinkPoint.
0.02 unreleased
+ - eliminate warnings about redefined subroutines
- better URLs for linkpoint perl wrapper
- don't spew debugging output by default
- better URLs for linkpoint perl wrapper
- don't spew debugging output by default
diff --git
a/LinkPoint.pm
b/LinkPoint.pm
index
88a8ac2
..
7b307ff
100644
(file)
--- a/
LinkPoint.pm
+++ b/
LinkPoint.pm
@@
-1,6
+1,6
@@
package Business::OnlinePayment::LinkPoint;
package Business::OnlinePayment::LinkPoint;
-# $Id: LinkPoint.pm,v 1.
2 2002-02-26 08:24:00
ivan Exp $
+# $Id: LinkPoint.pm,v 1.
3 2002-02-26 08:53:52
ivan Exp $
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
@@
-43,6
+43,14
@@
sub map_fields {
$self->content(%content);
}
$self->content(%content);
}
+sub build_subs {
+ my $self = shift;
+ foreach(@_) {
+ no warnings;
+ eval "sub $_ { my \$self = shift; if(\@_) { \$self->{$_} = shift; } return \$self->{$_}; }";
+ }
+}
+
sub remap_fields {
my($self,%map) = @_;
sub remap_fields {
my($self,%map) = @_;