example1c.pl

#!/usr/bin/perl -w
use Net::Z3950;
$conn = new Net::Z3950::Connection('localhost', 9999);
$rs = $conn->search('mineral');
print "found ", $rs->size(), " records:\n";
my $rec = $rs->record(1);
print $rec->render();
  

Creates a connection to the server on localhost, port 9999.

[prev] [next]