Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: How to write out a Perl script and run it in as few keystrokes as possible.

by tobyink (Abbot)
on Sep 25, 2012 at 17:02 UTC ( #995593=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to write out a Perl script and run it in as few keystrokes as possible.
in thread How to write out a Perl script and run it in as few keystrokes as possible.

nedit used to be my text editor of choice. I now prefer SciTE; it has more reliable Perl syntax highlighting (I often found nedit couldn't find the end of a string or regexp) and an integrated panel for displaying shell output, so if I'm editing a Perl script, I just need to save it and hit F5 to show the output at the bottom of my editing screen.

My only slight gripe is that the regular expression engine used by SciTE's search and replace is not quite as advanced as nedit's. But I can always copy and paste into a nedit window for advanced search and replace. (Or just run Perl or sed over the file.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^4: How to write out a Perl script and run it in as few keystrokes as possible.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995593]
help
Chatterbox?
[marioroy]: If yes, for redirection to work, one might do the following
[marioroy]: `bash -c "clang --version 2>/dev/null"`
[choroba]: Sane people don't use csh
[marioroy]: the 1>&2 will work, not shown
[marioroy]: sorry, did not know which if cmd.exe or unix (bash)
[choroba]: csh considered harmful
[erix]: no, I'm using bash :)
[marioroy]: :)
[marioroy]: I use the default and happens to be bash
[erix]: heh, I like the "Resolved" (Christiansen is really funny)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-03-23 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.