At 10:36 AM 6/25/2007 -0700, Dan Jablonsky wrote:
>just a quick questions: why do I get a download window
>when I'm trying to execute a .pl file in the browser?
>It's something very simple but I forgot how one fixes
>this.
Hi. What do u mean by execute in the browser? That doesn't make sense. Ar
That's a common problem with DOS versus unix file format. U can use the
commandline tool dos2unix to convert it after u upload it. DOS creates new
lines explicitly with the sequence CRLF while unix just uses LF (making the
CR implicit).
A simple workaround so that the file remains valid on both
The problem likely occurs when you "upload" (assuming you meant ftp when you
said that. Ensure you ftp the file in "ASCII" mode when going from windows
to unix or vice versa. This will automatically remove any CR's.
http://en.wikipedia.org/wiki/Newline#Common_problems
Jack
_
For Windows, I'm fond of the text editor Ultra Edit. It is not expensive
and I've been using it for years.
(For Mac heads, I suggest BBEdit--I'd use it on Windows if they made a
Win version)
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris Ro
Or you can get Crisom editor (download it for free) and save it on Unix format
and that will take the Ctrl-M as well
Saludos
Javier
Javier Nunez
Principal Systems Support Engineer
[EMAIL PROTECTED]
+1 (480) 375-6263
DHL ITSC Americas
- Original Message -
From: [EMAIL PROTECTED] <[EMAIL
We use a free editor, Metapad Lite
(http://www.liquidninja.com/metapad/download.html). This enables you to save
files as DOS Text (CR+LF), Unix Text (LF), Unicode or Unicode (Big Endian).
Are you sure the CRs are the problem?
Phil Brewer
Trivex Systems
- Original Message -
From: Chr
One of several ways is
Vi the file in Unix (assuming you try to run it there) then
Shift :
1,$s/ M//g
This will remove all Ctrl-M in the file
You can script this very easy
Saludos
Javier
Javier Nunez
Principal Systems Support Engineer
[EMAIL PROTECTED]
+1 (480) 375-6263
DHL ITSC Americas
---
Hi everyone,
I wrote a cgi script in PERL which won't execute. I'm told it's because I
have control M's at the end of each line, and that this happens when editing
programs in Windows (which I do, with Notepad). I found a free program on the
web (http://www.scriptarchive.com/scripts/snip
I'm sure others have a more elegant way of doing it, but make this the
first thing you print to stdout:
print "Content-Type: text/html\n\n";
print "\n";
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Dan Jablonsky
Sent: Monday, June 25, 2007 1:37 PM
To
On Mon, 25 Jun 2007, Michael Higgins wrote:
> I can't seem to find win32::shortcut... I'm assuming some other ppm-
> available module now has this feature, but I haven't found it yet.
It is part of the libwin32 package. It is already installed if you are
using ActivePerl.
One problem is that it
I can't seem to find win32::shortcut... I'm assuming some other
ppm-available module now has this feature, but I haven't found it yet.
Anyone have a suggested solution?
Cheers,
--
. . . . . . . . .. ... . . .``.
.`. .`. . . .` . . . .
hi all,
just a quick questions: why do I get a download window
when I'm trying to execute a .pl file in the browser?
It's something very simple but I forgot how one fixes
this.
I'll get back with details if necessary,
kowalsky
__
12 matches
Mail list logo