I write my perl code on Textpad 4.5.0 from www.textpad.com running on Windows 98SE, and upload it to a server running perl 5.8.0 on Red Hat Linux 9.0.

The problem I am having is that if I write a perl script in Textpad like this:
#!/usr/bin/perl print "hello world!\n";
I get this:

: bad interpreter: No such file or directory

If I add the -w switch, it works:
#!/usr/bin/perl -w print "hello world!\n";
It also works if I simply write the code direct on the Linux server, using a text editor like pico.

So my question is: Is there any way I can write perl in Textpad without using the -w switch all the time, and if not, is there an alternative text editor with color highlighting you would recommend?

By the way, I am uploading in ASCII mode, not binary.

Thanks for yor help!

In reply to Editor Problem by Likeless

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.