Help for this page
my $editor = $ENV{'editor'}; system('vim', $my_file);
my $editor = $ENV{'EDITOR'} || 'vim'; system($editor, $my_file);