-# $Id: Utils.pm,v 1.35 2007-06-28 13:59:31 sondberg Exp $
+# $Id: Utils.pm,v 1.37 2007-12-12 11:02:37 mike Exp $
package ZOOM::IRSpy::Utils;
sub _irspy_identifier2target {
my($id) = @_;
+ confess "_irspy_identifier2target(): id is undefined"
+ if !defined $id;
+
my($protocol, $target) = ($id =~ /(.*?):(.*)/);
if (uc($protocol) eq "Z39.50") {
return "tcp:$target";
return "sru=srw,http:$target";
}
- warn "unrecognised protocol '$protocol' in ID $id";
+ warn "_irspy_identifier2target($id): unrecognised protocol '$protocol'";
return $target;
}