There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

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