my $editor = $ENV{EDITOR} || 'vim'; system $editor => $filename;