Rocky Bernstein > Devel-Trepan-0.48 > Devel::Trepan::CmdProcessor::Command::Edit

Download:
Devel-Trepan-0.48.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Devel-Trepan-0.58

${NAME} [[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:

 ${NAME}            # Edit current location
 ${NAME} 7          # Edit current file at line 7
 ${NAME} test.rb    # Edit test.rb, line 1
 ${NAME} test.rb 10 # Edit test.rb  line 10
syntax highlighting: