Help for this page

Select Code to Download


  1. or download this
    print "no editor found\n"
      if (!defined $ENV{EDITOR} && !defined $ENV{VISUAL});
    
  2. or download this
    die "no editor found\n"
      unless my $editor = $ENV{EDITOR} || $ENV{VISUAL};
    print "predefined editor: $editor\n";