Re: pattern matching

From: Bob Walton (invalid-email_at_rochester.rr.com)
Date: 10/09/03


Date: Thu, 09 Oct 2003 00:35:15 GMT

Lex wrote:

> "Bob Walton" <invalid-email@rochester.rr.com> wrote in message
> news:3F837912.5060402@rochester.rr.com...
>
...
> I know I can install perl on my windows machine, but I reckon for my scripts
> to run (at the end they have to work on a unix-like machine) with all the
> path info and stuff it's not worth testing them first on my machine and than
> upload and see that stuff doesn't work as it isn't a windows webserver...
...

> Lex

You are overestimating the changes required when running Perl on a Unix
versus Windoze platform. I, for example, have run everything associated
with your problem (and most all the others) on Windoze 98SE (I do boot
to Linux sometimes, but not usually because of Perl). The Perl
development folks have done a stellar job of making Perl as
OS-independent as possible -- for example, the / versus \ path seperator
issue is a non-issue internally in Perl -- Perl does what you mean. The
only important exception is with binary files -- you must use the
binmode() function when dealing with binary files on Windoze.

It is super easy to get and install Perl on a Windoze machine -- one
option is visiting http://www.activestate.com and downloading their
version of Perl. If you have an older version of Windoze, you may need
to also download the "Micro$loth Installer" first, but that is spelled
out in relatively clear instructions on the site. Within minutes of
completing the download you can have Perl up and going, complete with
all the standard modules and real nice HTML docs. The only caution is
to not install a newer version of Perl over top of an older version --
that doesn't seem to fly too well.

You will find it 1000% easier to debug your scripts on your local
machine than on someone else's remote web server. And you can install a
web server on your own computer to assist with debugging CGI scripts
when they are actually running in a CGI environment. Trust me, it will
save you gobs of time to take the time to install Perl on your local
machine.

-- 
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl


Relevant Pages

  • Re: How to update perl on FreeBSD 4.9R (Resolved)
    ... > I did not know you could install Perl module's through the ports. ... > Perl module's via the ports, I got involved in an area which I ... > no mention that you can install Perl modules from the ports, ...
    (freebsd-questions)
  • Re: regex problem unresolved
    ... print "Hallo Ela!\n" ... Jurgen Exner dug up that this isn't printed with Perl 5.6. ... it's possible to install Perl into a local account. ... that data file confirmed by search, I believe the fetch program first ...
    (comp.lang.perl.misc)
  • Re: Cant locate DBI.pm
    ... To install perl it is asking cc ... I downloaded gcc from freeware, ... Give a hobbit a ring and he eats fish for an age. ...
    (perl.dbi.users)
  • Re: perl cgi session module installation problem
    ... I am trying to install perl cgi::session module using the perl module ... Not enough arguments for mkdir at Makefile.PL line 61, ...
    (comp.lang.perl.modules)
  • FreeBSD early perl version
    ... I need Perl 5.004 because my scripts run on this version and not Perl ... What is the easiest way to install Perl 5.004 instead of ... having the newer on 5.3 FreeBSD? ...
    (comp.unix.bsd.freebsd.misc)