Skip to content

Commit

Permalink
use exit instead of die
Browse files Browse the repository at this point in the history
  • Loading branch information
lushl9301 committed Jun 8, 2015
1 parent 71d6275 commit f0f07c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jsonParser.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
binmode(STDOUT, ":utf8");

$filename = "raw_data.json";
open FILE, "<:encoding(utf-8)", $filename or die "can't find file ".$filename;
open FILE, "<:encoding(utf-8)", $filename or exit "can't find file ".$filename;
while ($readinline = <FILE>) {
if ($readinline =~ /^\n/) {
next;
Expand Down
2 changes: 1 addition & 1 deletion preProcess.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
binmode(STDOUT, ":utf8");

$filename = "pubmed_result.txt";
open FILE, "<:encoding(utf-8)", $filename or die "can't find file ".$filename;
open FILE, "<:encoding(utf-8)", $filename or exit "can't find file ".$filename;
while ($readinline = <FILE>) {
if ($readinline =~ /^\n/) {
next;
Expand Down

0 comments on commit f0f07c4

Please sign in to comment.