summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-01-28 06:04:06 +0000
committerfukachan <fukachan>2001-01-28 06:04:06 +0000
commit3788efc0273da75b27efb6ea39d684e5e3068731 (patch)
tree958612c86776192a5499ac3d83219cc91576c7c4
parentdf88fed133dd67f2d6fd34d4d3b3c7642affe890 (diff)
downloadfml8-snap-20010128.tar.gz
fml8-snap-20010128.tar.bz2
fml8-snap-20010128.zip
IO::* testsnap-20010128
-rwxr-xr-xfml/lib/IO/t/file_map.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/fml/lib/IO/t/file_map.pl b/fml/lib/IO/t/file_map.pl
new file mode 100755
index 00000000..a223a8e9
--- /dev/null
+++ b/fml/lib/IO/t/file_map.pl
@@ -0,0 +1,10 @@
+use Carp;
+
+$map = 'file:/etc/passwd';
+
+ use IO::MapAdapter;
+ $obj = new IO::MapAdapter $map;
+ $obj->open || croak("cannot open $map");
+ if ($obj->error) { croak( $obj->error );}
+ while ($x = $obj->getline) { print $x; }
+ $obj->close;