diff options
| author | fukachan <fukachan> | 2002-12-26 15:07:49 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-12-26 15:07:49 +0000 |
| commit | cfa9fd975b76df8c8c1b80dcc6e28af57e0777cb (patch) | |
| tree | 430f33e9f89d5bcb2c86b039209246bc3815d182 | |
| parent | 0aab12afbd1bf7eebabbdd8ee92b4ba4f95be5a1 (diff) | |
| download | fml8-cfa9fd975b76df8c8c1b80dcc6e28af57e0777cb.tar.gz fml8-cfa9fd975b76df8c8c1b80dcc6e28af57e0777cb.tar.bz2 fml8-cfa9fd975b76df8c8c1b80dcc6e28af57e0777cb.zip | |
fix if (defined $sfh) { $sfh-> .. }
| -rw-r--r-- | fml/lib/FML/Article.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fml/lib/FML/Article.pm b/fml/lib/FML/Article.pm index bb6f24ad..b5efce58 100644 --- a/fml/lib/FML/Article.pm +++ b/fml/lib/FML/Article.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Article.pm,v 1.50 2002/12/15 14:02:08 fukachan Exp $ +# $FML: Article.pm,v 1.51 2002/12/24 10:19:38 fukachan Exp $ # package FML::Article; @@ -163,11 +163,14 @@ sub id # processes not Process::Distribute else { my $seq_file = $config->{ sequence_file }; + my $n = 0; use File::Sequence; my $sfh = new File::Sequence { sequence_file => $seq_file }; - my $n = $sfh->get_id(); - $sfh->close(); + if (defined $sfh) { + $n = $sfh->get_id(); + $sfh->close(); + } return $n; } |
