else {
next;
}
- if ( open( FILE, $file ) ) {
- while ( my $line = <FILE> ) {
+ if ( open( my $fh, '<', $file ) ) {
+ while ( my $line = <$fh> ) {
my $delim =
( $line =~ /\t/ ) ? "\t"
: ( $line =~ /,/ ) ? ","
undef $srcimage;
}
}
- close(FILE);
+ close($fh);
}
else {
$error = 'OPNLINK';