The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Synopsis:

edit [[file] [line]]

With no argument, edits file containing most recent line listed. The value of the environment variable EDITOR is used for the editor to run. If no EDITOR environment variable is set /bin/ex is used. The editor should support line and file positioning via

   editor-name +line file-name

(Most editors do.)

Examples:

   edit            # Edit current location
   edit 7          # Edit current file at line 7
   edit test.rb    # Edit test.rb, line 1
   edit test.rb 10 # Edit test.rb  line 10