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