Re: download window instead of executing

2007-06-25 Thread Chris Wagner
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

Re: control M's

2007-06-25 Thread Chris Wagner
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

RE: control M's

2007-06-25 Thread Jack D
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 _

RE: control M's

2007-06-25 Thread John Townsend
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

Re: control M's

2007-06-25 Thread Javier Nunez (DHL US)
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

Re: control M's

2007-06-25 Thread Phil Brewer
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

Re: control M's

2007-06-25 Thread Javier Nunez (DHL US)
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 ---

control M's

2007-06-25 Thread Chris Rodriguez
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

RE: download window instead of executing

2007-06-25 Thread Hoopes, William @ CSE
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

RE: Win32 Shortcut?

2007-06-25 Thread Jan Dubois
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

Win32 Shortcut?

2007-06-25 Thread Michael Higgins
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, -- . . . . . . . . .. ... . . .``. .`. .`. . . .` . . . .

download window instead of executing

2007-06-25 Thread Dan Jablonsky
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 __