summaryrefslogtreecommitdiff
path: root/fml/lib/IO/t/replace.pl
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-05-04 14:32:32 +0000
committerfukachan <fukachan>2001-05-04 14:32:32 +0000
commit149320fad450d354f755201015ae3826ee5d0fe6 (patch)
tree34d5d452336e31124a7b3309da21f95d2b0c0460 /fml/lib/IO/t/replace.pl
parentb4ef1b3d71ef5fab8342c22007066aa0d22267d7 (diff)
downloadfml8-149320fad450d354f755201015ae3826ee5d0fe6.tar.gz
fml8-149320fad450d354f755201015ae3826ee5d0fe6.tar.bz2
fml8-149320fad450d354f755201015ae3826ee5d0fe6.zip
rename class from IO::MapAdapter to IO::Adapter.
Diffstat (limited to 'fml/lib/IO/t/replace.pl')
-rwxr-xr-xfml/lib/IO/t/replace.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/fml/lib/IO/t/replace.pl b/fml/lib/IO/t/replace.pl
index 111abb57..ff9a71bd 100755
--- a/fml/lib/IO/t/replace.pl
+++ b/fml/lib/IO/t/replace.pl
@@ -5,7 +5,7 @@
# redistribute it and/or modify it under the same terms as Perl itself.
#
# $Id$
-# $FML$
+# $FML: replace.pl,v 1.2 2001/04/03 09:45:47 fukachan Exp $
#
use strict;
@@ -26,8 +26,8 @@ system "sed 1d $org_file > $tmpf";
system "cp $org_file /tmp/";
# append
-use IO::MapAdapter;
-my $obj = new IO::MapAdapter $map;
+use IO::Adapter;
+my $obj = new IO::Adapter $map;
$obj->replace( $regexp, $value ) || croak("cannot add to $map");
if ($obj->error) { croak( $obj->error );}
@@ -47,7 +47,7 @@ else {
$map = 'unix.group:fml';
print "${map}->replace() ... ";
-$obj = new IO::MapAdapter $map;
+$obj = new IO::Adapter $map;
eval q{ $obj->replace( $regexp, $value ); };
if ($@) {
print "ok\n"; # XXX fail (non null $@) is ok here.