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
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:
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
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
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";
>
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 <
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
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,
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
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.
-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 --
11 matches
Mail list logo