http://www.perlmonks.org?node_id=239753


in reply to Re: There's a level in Hell reserved for ________
in thread There's a level in Hell reserved for ________

No. I don't use vi, but it at least has some basic functionality. It's not scriptable, so it's not good for really serious use, but it can get simple jobs done in a pinch, unlike most other so-called text editors (EDIT, Notepad, SimpleText, TPU, ...).

i assure you, not only is vi scriptable, it's really good for serious use. and if you use a buff version like vim you can even have a Perl interpreter inside your editor.

i remeber converting a shell script to Perl once while someone was watching.

# foo.sh HELLO = "hello" WORLD = "world" # tons more of these

luckily :g/^[A-Z]\+ =/s/^/my $/|s/$/;/ can Perlify all of those variable declarations for me!

# foo.sh my $HELLO = "hello"; my $WORLD = "world"; # ...

there's nothing like watching a file morph from one language to another almost magicly.