| View previous topic :: View next topic |
| Author |
Message |
Don Dailey
Joined: 29 Apr 2008 Posts: 4325
|
Post subject: Re: looking for a tool to conver line endings Posted: Thu Mar 22, 2012 4:22 pm |
|
|
| gladius wrote: |
| Don wrote: |
| I suggest to Richard that you could just learn Perl and be done with it. Perl has powerful regular expressions, is a full scripting language and is just about as expressive as any language can be. You could write one-liners on the command line (without getting out the editor) with the -e switch which will do amazing things. And when a one-liner is not quite enough Perl let's you do amazingly powerful stuff in just a few lines of code. |
At the risk of starting a language flamewar, s/perl/python/g. .
Seriously though, both Perl and Python are fantastic tools. Both would serve you very well. |
No flamewar, in fact I almost suggested other high level languages but wanted to keep it simple. I believe Perl is the one to reach for if you are looking for a "Swiss Army one-off Tool" for things like this.
I would suggest as a second choice, Ruby, then Python and there are others that would do a very similar good job for stuff like this. But I would use Ruby or Python if it were a larger project, Perl for these simple things. Of course you can build powerful systems with just Perl too, it's a very complete language.
I wrote a scrabble playing program in Perl using the Tk library for the graphics, the computer computes and plays a high scoring move. It was an amazingly short program, I can imagine the same thing in Java or C to be MUCH longer and complicated. _________________ The Optimist thinks this is the best of all possible worlds, the Pessimist fears it is true. |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
looking for a tool to conver line endings |
Richard Vida |
Sun Mar 18, 2012 2:28 pm |
Re: looking for a tool to conver line endings |
Horacio Montenegro |
Sun Mar 18, 2012 2:44 pm |
Re: looking for a tool to conver line endings |
Ignacio Garcia |
Sun Mar 18, 2012 3:16 pm |
Re: looking for a tool to conver line endings |
Lucas Braesch |
Sun Mar 18, 2012 3:30 pm |
Re: looking for a tool to conver line endings |
Robert Hyatt |
Sun Mar 18, 2012 4:03 pm |
Re: looking for a tool to conver line endings |
Ignacio Garcia |
Sun Mar 18, 2012 5:42 pm |
Re: looking for a tool to conver line endings |
Robert Hyatt |
Mon Mar 19, 2012 3:43 am |
Re: looking for a tool to conver line endings |
Horacio Montenegro |
Sun Mar 18, 2012 5:08 pm |
Re: looking for a tool to conver line endings |
Richard Vida |
Sun Mar 18, 2012 6:29 pm |
Re: looking for a tool to conver line endings |
Ignacio Garcia |
Sun Mar 18, 2012 7:07 pm |
Re: looking for a tool to conver line endings |
Sven Schüle |
Sun Mar 18, 2012 11:10 pm |
Re: looking for a tool to conver line endings |
Ignacio Garcia |
Mon Mar 19, 2012 12:37 am |
Re: looking for a tool to conver line endings |
Horacio Montenegro |
Mon Mar 19, 2012 3:45 am |
Re: looking for a tool to conver line endings |
Sven Schüle |
Mon Mar 19, 2012 10:37 am |
Re: looking for a tool to conver line endings |
Robert Hyatt |
Mon Mar 19, 2012 3:47 am |
Re: looking for a tool to conver line endings |
Sven Schüle |
Mon Mar 19, 2012 10:58 am |
Re: looking for a tool to conver line endings |
Ignacio Garcia |
Mon Mar 19, 2012 11:54 am |
Re: looking for a tool to conver line endings |
Lucas Braesch |
Thu Mar 22, 2012 12:58 pm |
Re: looking for a tool to conver line endings |
Don Dailey |
Thu Mar 22, 2012 2:15 pm |
Re: looking for a tool to conver line endings |
Gary |
Thu Mar 22, 2012 3:25 pm |
Re: looking for a tool to conver line endings |
Don Dailey |
Thu Mar 22, 2012 4:22 pm |
Re: looking for a tool to conver line endings |
Don Dailey |
Mon Mar 19, 2012 1:52 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|