X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=LinkPoint.pm;h=26c16bb9d293f9d59828634fb26569a5f1868127;hb=5de756ba069ae62315de0968f1149f3b657b879d;hp=7b307ffa6b74002827c3ff8d54671d86e1f63822;hpb=833eb49cafadf0d81d9097789fdb48dde8b1d546;p=Business-OnlinePayment-LinkPoint.git diff --git a/LinkPoint.pm b/LinkPoint.pm index 7b307ff..26c16bb 100644 --- a/LinkPoint.pm +++ b/LinkPoint.pm @@ -1,6 +1,6 @@ package Business::OnlinePayment::LinkPoint; -# $Id: LinkPoint.pm,v 1.3 2002-02-26 08:53:52 ivan Exp $ +# $Id: LinkPoint.pm,v 1.6 2002-08-14 01:32:54 ivan Exp $ use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); @@ -46,7 +46,8 @@ sub map_fields { sub build_subs { my $self = shift; foreach(@_) { - no warnings; + #no warnings; #not 5.005 + local($^W)=0; eval "sub $_ { my \$self = shift; if(\@_) { \$self->{$_} = shift; } return \$self->{$_}; }"; } } @@ -149,7 +150,11 @@ sub submit { #print "$_ => $post_data{$_}\n" foreach keys %post_data; - my %response = $lperl->$action(\%post_data); + my %response; + { + local($^W)=0; + %response = $lperl->$action(\%post_data); + } if ( $response{'statusCode'} == 0 ) { $self->is_success(0); @@ -229,7 +234,7 @@ Based on Busienss::OnlinePayment::AuthorizeNet written by Jason Kohles. =head1 SEE ALSO -perl(1). L. +perl(1), L. =cut