Dec 30, 2012

Execte the Perl script within the edited perl file


Suppose you edited a perl file in Vim editor
You can execute the perl script there itself without going back to command prompt, which saves you time

e.g.,

vim test.txt

press <Escape>
! perl %

- It executes the script which already edited

- if you want to execute a different script, mention the file name

press <Escape>
! perl test2.txt


- press Enter again to return to the edited file








No comments:

Post a Comment