最近透過 checkmarx 掃描 perl 的原始碼, 只要出現
open(FH, '<', $file) or die $!;
就會有以下這個風險項目
: open(FH, '<', $branch_env_file) or die $!; :
use Carp; : open(FH, '<', $branch_env_file) or croak "error opening $branch_env_file: stopped"; :