Re: Using PC Word to write text for PERL
by virtualsue (Vicar) on Aug 12, 2001 at 00:39 UTC
|
Neither of those editors are even close to being a
functional programming editor. I strongly
suggest you get one and find out how much better your life
can be. See Outside Links for lots of suggestions.
It is quite possible that you are suffering from the end of
line differences which unix and ms-dos/win systems have.
I don't know what your remote host is, but if it's a unix
system, then it expects the EOL/newline character to be
LF aka \n (^J, 0x0a). MS-DOS and its progeny use
CRLF aka \r\n (^M^J, 0x0d0a) to signify end of line. I use
my editor to remove extra CRs (^M) from files I've brought
over from PCs. Perl can do that too, but it's just simpler
to use a good editor. | [reply] |
Re: Using PC Word to write text for PERL
by JSchmitz (Canon) on Aug 12, 2001 at 00:55 UTC
|
Okay here it is - Programming in Win32 is one thing. But using Word as a programming tool??? I suggest you try Xemacs
which runs on Windows and is a great editor you can get it free from here I think you
will find that it is a powerful tool and lends itself well to Perl programming. There is also something called Perl Builder that you can get here although you would have to keep downloading the demo every 30 days cause it is not free. Happy coding!
JSchlitz | [reply] |
Re: Using PC Word to write text for PERL
by chinman (Monk) on Aug 12, 2001 at 00:11 UTC
|
Word is a really lowsy text editor. Wait... Word is just plain
lousy. Anyway, for the last few months, I've been using Textpad, which has been recommended by
other Perl coders on this site. It's really good, stable, and has
syntax highlighting, for a number of languages. I think this is the
best 30 bucks I've ever spent in my life. You can download a trial
version and check it out before you buy. Good luck!
Update:
I've recently been using UltraEdit-32 from the advice of others on this site and I think I like it better than Textpad. I really like the ability to navigate to subroutines. It too is only 30 bucks.
| [reply] |
Re: Using PC Word to write text for PERL
by ralphie (Friar) on Aug 12, 2001 at 02:21 UTC
|
i use ultraedit as an editor which, among many other features, has the capability to convert from dos to unix line endings, which would be very handy in your context. i won't go into it's other features here ... a 45 day evaluation version can be downloaded from www.ultraedit.com ... registration is $30. | [reply] |
|
I'll second the endorsement of UltraEdit. It's not just a great
editor, with syntax highlighting and the like, but rises
almost to the level of an integrated development environment.
I wish I could find something as good for Linux. Glimmer
comes close, but lacks UltraEdit's polish and
naturalness.
| [reply] |
Re: Using PC Word to write text for PERL
by MrCromeDome (Deacon) on Aug 12, 2001 at 02:37 UTC
|
| [reply] |
Re: Using PC Word to write text for PERL
by jepri (Parson) on Aug 12, 2001 at 10:07 UTC
|
And to convert from unix line endings to MS and back again, you can try:
perl -pe -i.bak 's/\n/\r\n/g' filename.txt
or
perl -pe -i.bak 's/\n/\n\r/g' filename.txt
I can never remember which one it is...
____________________
Jeremy
I didn't believe in evil until I dated it. | [reply] [d/l] |
Re: Using PC Word to write text for PERL
by John M. Dlugosz (Monsignor) on Aug 12, 2001 at 09:30 UTC
|
I use Source Insight for editing Perl (note: not PERL) files. It has awsome color syntax highlighting and cross-referencing capability. | [reply] |
Re: Using PC Word to write text for PERL
by ajt (Prior) on Sep 27, 2001 at 18:26 UTC
|
urgh, I was once asked to help out in a class, where we used Word and WordPad to edit text files. Overall there isn't much going for either, they are slow to load, and not really designed for plain text. If you try NotePad, you get your Unix line ends glooped, and you've not got very far.
There are plenty of good alternatives out there, you can take your pick from Outside Links, to which I would add the now very stable (i.e. read dead), but still downloadable, Programmer's File Editor and the very alive EditPad.
| [reply] |