summaryrefslogtreecommitdiff
path: root/fml/lib/IO/t
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-01-28 06:04:06 +0000
committerfukachan <fukachan>2001-01-28 06:04:06 +0000
commit4e58304342b32b569f76095a8fcc19f5d0deec05 (patch)
tree3e07362d5a52d5242dd45974d540fa44854dab58 /fml/lib/IO/t
parentbf536b70d36b2932a3f33f7ed10e7b666a075652 (diff)
downloadfml8-4e58304342b32b569f76095a8fcc19f5d0deec05.tar.gz
fml8-4e58304342b32b569f76095a8fcc19f5d0deec05.tar.bz2
fml8-4e58304342b32b569f76095a8fcc19f5d0deec05.zip
Initial revision
Diffstat (limited to 'fml/lib/IO/t')
-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;