Re: [expert] Perl scripts won't work???

2000-11-07 Thread J . A . Magallon
On Tue, 07 Nov 2000 18:38:17 Alexander Skwar wrote: > So sprach Jean-Michel Dault am Tue, Nov 07, 2000 at 01:03:14AM -0500: > > the file? Simply type this: > > perl -pi -e "s/\015//g;" *.pl > > even simpler: > > perl -pi -e "s|\r||g" *.pl > Even much more simpler, extract again with 'unzip -a

Re: [expert] Perl scripts won't work???

2000-11-07 Thread Alexander Skwar
So sprach Jean-Michel Dault am Tue, Nov 07, 2000 at 01:03:14AM -0500: > the file? Simply type this: > perl -pi -e "s/\015//g;" *.pl even simpler: perl -pi -e "s|\r||g" *.pl \r is carriage return, and the ; isn't needed when the whole command is just one line small Alexander Skwar -- Homepage:

Re: [expert] Perl scripts won't work???

2000-11-06 Thread Jean-Michel Dault
On Wed, 25 Oct 2000, Daniel Woods wrote: > Figured it out ? That's right, ftp'ing a zip file and unzipping it > on Linux will retain the Windows end-of-line markers (CR/LF). *nix > only uses LF (newline). If you use vi/vim on xx2.pl, you'll see a > '[dos]' comment in the status line (bottom). I

Re: [expert] Perl scripts won't work???

2000-10-25 Thread Jean-Michel Dault
On Tue, 24 Oct 2000, junkmail wrote: > Hey, so I'm having a weird problem maybe someone can help me with. > I have a simple perl script named test.cgi that generates html (ie a cgi > script) which looks like > > #!/usr/bin/perl > # hello.pl -- my first perl script! > print "Content-type: tex

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Daniel Woods
Sam, > Hey, so I'm having a weird problem maybe someone can help me with. > I have a simple perl script named test.cgi that generates html (ie a cgi > script) which looks like > > #!/usr/bin/perl > # hello.pl -- my first perl script! > print "Content-type: text/html\n\n"; > print <<"EOF"; >

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Aaron Dancygier
junkmail wrote: > Hey, so I'm having a weird problem maybe someone can help me with. > I have a simple perl script named test.cgi that generates html (ie a cgi > script) which looks like > > #!/usr/bin/perl > # hello.pl -- my first perl script! > print "Content-type: text/html\n\n"; > print <

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Aaron Dancygier
from the command line type which perl and make sure you have the correct path in your script. Try running the program from your web browser (assuming your webserver is properly set up). As a side note for a cgi script I'd recommend using CGI.pm. with cgi.pm this script would become #!/usr/bin/p

[expert] Perl scripts won't work???

2000-10-24 Thread junkmail
Hey, so I'm having a weird problem maybe someone can help me with. I have a simple perl script named test.cgi that generates html (ie a cgi script) which looks like #!/usr/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print <<"EOF"; Hello, world! Hello,

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Luis Chardon
I would definetly check wether the perl path is correct. Luis On Tue, 24 Oct 2000, Jim Holthaus wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tue, 24 Oct 2000, junkmail wrote: > > > > Hey, so I'm having a weird problem maybe someone can help me with. > > I have a simpl

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Don
When writting perl script my first line also includes a -w like so: #!/usr/bin/perl -w This very important switch tells Perl to produce extra warning messages about potentiallydangerous constracts. You should always develop your programs under -w See Learning Perl(O'Reilly)2nd edition page 5.

Re: [expert] Perl scripts won't work???

2000-10-24 Thread Jim Holthaus
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 24 Oct 2000, junkmail wrote: > > Hey, so I'm having a weird problem maybe someone can help me with. > I have a simple perl script named test.cgi that generates html (ie a cgi > script) which looks like > > #!/usr/bin/perl > # hello.pl --