blob: a223a8e91f6205e39261782a90977a1a6f57e50e (
plain)
1
2
3
4
5
6
7
8
9
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;
|