--- trunk/marc_sf.pm 2003/10/29 23:19:58 139 +++ trunk/marc_sf.pm 2003/11/23 15:39:23 169 @@ -4,8 +4,8 @@ # e.g. marc_sf($row,'700','a') # sub marc_sf { - my $marc = shift @_; - my $f = shift @_; + my $marc = shift @_ || die "marc_sf: needs record"; + my $f = shift @_ || die "marc_sf: needs field name"; my $s = shift @_; my $i = shift @_ || 0;