[16971] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4383 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 20 06:10:25 2000

Date: Wed, 20 Sep 2000 03:10:13 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <969444612-v9-i4383@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Wed, 20 Sep 2000     Volume: 9 Number: 4383

Today's topics:
    Re: Is this terribly inefficient? <bart.lateur@skynet.be>
    Re: NT File Attribute - archive <carvdawg@patriot.net>
        Numbers! (Eric Mosley)
    Re: Numbers! <christian@fabel.dk>
    Re: Parsing Data in a string <philipg@atl.mediaone.net>
        Parsing incoming mails to launch a script <f.benady@french-connexion.com>
    Re: Parsing incoming mails to launch a script <home.barbet@wanadoo.fr>
        perl - socket - solaris problem alonz0815@my-deja.com
        Perl and SSL <KrayZ@kryz.org>
    Re: Perl and SSL (Rafael Garcia-Suarez)
        Perl economy scott@mobinfo.com.au
        perl online shop example <berlinerfirmen@t-online.de>
        Perl script to dynamically update page? <graphi@sorted2000.co.uk>
    Re: Perl script to dynamically update page? (Abigail)
    Re: Pure perl encrypt/decryption? (Tony L. Svanstrom)
    Re: Pure perl encrypt/decryption? <andrew.flisher@onyx.net>
    Re: Pure perl encrypt/decryption? <andrew.flisher@onyx.net>
    Re: Regex Problem (Philip Lees)
    Re: Reload, Reload, and No-Cache <wyzelli@yahoo.com>
    Re: rename Vs system mv <bart.lateur@skynet.be>
    Re: Split NS Log File <glynFOOdwr@FSCKdeleteEmeD.co.uk>
    Re: system load analysis tools geoff@jungle.com
    Re: system load analysis tools geoff@jungle.com
    Re: What bits and pieces needed to compile modules on W <jeff@vpservices.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 20 Sep 2000 07:01:44 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Is this terribly inefficient?
Message-Id: <orngsso9jqtkl8ipt52eppdrem6tafp81k@4ax.com>

Larry Rosler wrote:

>String comparison is O(N) in the length of the strings being compared, 
>which becomes a multiplicative factor in the O(N log N) comparisons.

No. Or yes. Or...  Anyway: it's *not the name N*. So, let's call it M: M
is the average string length. N is the number of array items.

For floating point comparison, M = 12 may be enough. Compare that to 4
to 8 bytes for the packed number. That's not an earth-shattering
difference.

-- 
	Bart.


------------------------------

Date: Wed, 20 Sep 2000 05:38:05 -0400
From: H C <carvdawg@patriot.net>
Subject: Re: NT File Attribute - archive
Message-Id: <39C8857D.7114BE26@patriot.net>



jason wrote:

>   [ posted to comp.lang.perl.misc and CCed to tanya_ellis@hotmail.com ]

> please try not to ask the same question twice .. I've already answered
> this in the other thread that you started entitled "Archive File
> Attribute on NT"

Again, you could have sent your response to Tanya alone, but you had to make
sure everyone else knew how smart you are...



------------------------------

Date: Wed, 20 Sep 2000 08:58:10 GMT
From: ericm@iol.ie (Eric Mosley)
Subject: Numbers!
Message-Id: <C__x5.3200$44.10044@news.iol.ie>

I need to be able to generate a unique number for a series of digital gift
certificates.

I would like it to be quite hard for a scamster to make up his own valid
numbers and try his look - therefore I need the numbers I use to be hard
to replicate more valid numbers - if you know what I mean!

Is there an algorithm where I can spit out some fairly unique numbers?

Thanks alot,

Eric


------------------------------

Date: Wed, 20 Sep 2000 11:45:27 +0200
From: Christian Vandsø <christian@fabel.dk>
Subject: Re: Numbers!
Message-Id: <fj1hssgum0afs6qi5nsdhlelhh19p01upj@4ax.com>

On Wed, 20 Sep 2000 08:58:10 GMT, ericm@iol.ie (Eric Mosley) wrote:

>I need to be able to generate a unique number for a series of digital gift
>certificates.
>
>I would like it to be quite hard for a scamster to make up his own valid
>numbers and try his look - therefore I need the numbers I use to be hard
>to replicate more valid numbers - if you know what I mean!
>
>Is there an algorithm where I can spit out some fairly unique numbers?

 What you want is numbers that obey a certain checksum rule, like a
credit card number. The uniqueness of the number is just a pleasent
sideeffect.
 I suggest that you check out the various checksum algorithms for
creditcards. Of course, you should create your own variation, as the
checksum should be kept a secret. 

/Christian


------------------------------

Date: Wed, 20 Sep 2000 04:24:57 GMT
From: "Philip Garrett" <philipg@atl.mediaone.net>
Subject: Re: Parsing Data in a string
Message-Id: <t_Wx5.282$PW4.355529@typhoon.southeast.rr.com>

Arthur Dalessandro <adalessandro@odione.com> wrote in message
news:ssgcsp3pum563@corp.supernews.com...
> I have a string, lets say:
> $temp = "SMTP <artd@artd3.com>"

BTW, you probably want to use single quotes there.

> I want to get the email address out of the string.  Is there an easy way
to
> go about doing this?  I suppose I could spit it twice, first get the data
> after the "<"  then split again and get the data before the ">" but I was
> hoping there would be a built in feature in perl to do this.  Please help.

An easy (albeit not completely reliable) solution is this:

my ($email) = $temp =~ /\<(.*?)\>/;

This won't work correctly if there happens to be a '>' somewhere in the
email address.  I'm not sure if the spec allows them.

hth,
p




------------------------------

Date: Wed, 20 Sep 2000 10:45:30 +0200
From: "Frank Benady" <f.benady@french-connexion.com>
Subject: Parsing incoming mails to launch a script
Message-Id: <8q9tp5$46v$1@wanadoo.fr>

Hi

I'm running Linux RedHat6

How can I parse incoming mails for some info and launch a script
accordingly using perl ?

I  tried to do it with procmail but I seems it cannot work together
with sendmail. Is there a way to do it in perl ?

thanks




------------------------------

Date: Wed, 20 Sep 2000 11:01:40 +0100
From: "Alain BARBET" <home.barbet@wanadoo.fr>
Subject: Re: Parsing incoming mails to launch a script
Message-Id: <8q9u38$eu0$1@s1.read.news.oleane.net>

Hi,

Update /etc/aliases to give path of program with one adress mail.
Example, on nobody:

nobody: "|/home/Administrateur/sys-com/clean.pl" then call newaliases
Then use MIME::Parser
Example:

#!/usr/bin/perl -Tw
use strict;
use MIME::Parser;
# Decodage des mails recus
my $parser = new MIME::Parser;
# Lecture sur l'entree standart du mail
my $entity = $parser->read(\*STDIN)
|| die "couldn't parse MIME stream";
# On recupere l'entete du message
my $head = $entity->head();
# On recupere l'expediteur du message
my $expediteur = $head->get('From:');
 ...
HTH,
--
Alain BARBET




------------------------------

Date: Wed, 20 Sep 2000 09:14:53 GMT
From: alonz0815@my-deja.com
Subject: perl - socket - solaris problem
Message-Id: <8q9v61$1ra$1@nnrp1.deja.com>

Hi,

I'm trying to build up a socket for tcp communication. I use the
following lines:

:my $server = IO::Socket::INET->new(
:Proto    => "tcp", PeerAddr  => $host,
:PeerPort  => $port);
:
:print" Value \$server->$server \n";
:if (defined($server)) {print "server=$server\n";}


Running this on Linux produced the following result:

>  Value $server-
>

doing the same code on Solaris 5.6 produced the following:

> Value $server->IO::Socket::INET=GLOB(0x44ad80)
> server=IO::Socket::INET=GLOB(0x44ad80)

What can I do now ? If the return value is undefined (as on linux) I
can catch the error on constructing the socket. But under Solaris the
value is defined and produced no error. Any hints how to handle this
situation?

Thanks
alonzo



Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Wed, 20 Sep 2000 10:22:33 +0200
From: KrayZ <KrayZ@kryz.org>
Subject: Perl and SSL
Message-Id: <39C873C9.DC1D996B@kryz.org>

Hi all,
    I'm looking for a cgi which can read a X509 certificate of a SSL
communication (the server read and accept the client cert, but I don't
know how can I read it from a cgi to give diferents privileges to
diferents users or how can I pass these info from apache web server to
perl cgi).
  Thanks



------------------------------

Date: Wed, 20 Sep 2000 08:34:52 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: Perl and SSL
Message-Id: <slrn8sgu1j.q8o.rgarciasuarez@rafael.kazibao.net>

KrayZ wrote in comp.lang.perl.misc:
>Hi all,
>    I'm looking for a cgi which can read a X509 certificate of a SSL
>communication (the server read and accept the client cert, but I don't
>know how can I read it from a cgi to give diferents privileges to
>diferents users or how can I pass these info from apache web server to
>perl cgi).

This is more a web server question than a Perl question. Have you looked
at the environment varaibles passed from your SSL-enabled web server to
your CGI program?

-- 
Rafael Garcia-Suarez | http://rgarciasuarez.free.fr/


------------------------------

Date: Wed, 20 Sep 2000 09:50:26 GMT
From: scott@mobinfo.com.au
Subject: Perl economy
Message-Id: <CL%x5.7$ii2.829@vic.nntp.telstra.net>

Hi there,

Is there a more succinct way to do this:

$a = '/home/scott/inc /usr/include /home/scott/program/include'
x join(' ', map({ $_ = '-I' . $_ } split(/\s+/, $a)))
0  '-I/home/scott/inc -I/usr/include -I/home/scott/program/include'

This *almost* does what I want:
x join(' -I', split(/\s+/, $a))
0  '/home/scott/inc -I/usr/include -I/home/scott/program/include'

but it doesn't prefix the 1st dir with '-I', which is why I
resorted to using 'map' above.

Anyone know a more efficient (less maninpulation &/or lines-of-code) way?

Actually, I think that should b "less characters-of-code"! :)

Bye,

SCoTT! :)
--------------------
scott@mobinfo.com.au


------------------------------

Date: Wed, 20 Sep 2000 11:11:54 +0200
From: "Böttiger, Roland" <berlinerfirmen@t-online.de>
Subject: perl online shop example
Message-Id: <8q9ur3$fh$12$1@news.t-online.com>

Hi,

I'm looking for a online shop example in perl. Can any one help me out?



bye






------------------------------

Date: Wed, 20 Sep 2000 06:15:11 +0100
From: "Graphi_" <graphi@sorted2000.co.uk>
Subject: Perl script to dynamically update page?
Message-Id: <8q9h3m$s9i$1@supernews.com>

My perl script is linked from another web site & executes just fine.
However the page "freelinks.html" does not update!
The idea is for visitors to post URL's and the info to be updated & listed
within each 10 categories shown.
I'm new to perl and would appreciate any suggestions... Have I missed
something obvious?
It has been suggested the full path is not specified but I dont know this
and the host doesn't always reply to emails.
If the root directory is indeed the problem does anyone know this servers
path please?= http://www.portland.co.uk

<A href="http://graphi.port5.com/free.htm"><form action=
"http://graphi.port5.com/cgi-bin/freelinks/free.cgi" method=post>

#!/usr/local/bin/perl
$freelocation = "http://graphi.port5.com/freelinks.html";
$freepath = "http://graphi.port5.com/free.htm";
$cgilocation = "http://graphi.port5.com/cgi-bin/freelinks/free.cgi";
-- -- -- -- -- --
Graphi

Web Design: [UK] http://graphi.port5.com
Prices per graphic, page or full site

Make your own moulds
http://www.mouldmaking.freeserve.co.uk
Domain: http://www.sorted2000.com





------------------------------

Date: 20 Sep 2000 05:56:55 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Perl script to dynamically update page?
Message-Id: <slrn8sgkb0.5fq.abigail@alexandra.foad.org>

Graphi_ (graphi@sorted2000.co.uk) wrote on MMDLXXVII September MCMXCIII
in <URL:news:8q9h3m$s9i$1@supernews.com>:
{} My perl script is linked from another web site & executes just fine.
{} However the page "freelinks.html" does not update!
{} The idea is for visitors to post URL's and the info to be updated & listed
{} within each 10 categories shown.
{} I'm new to perl and would appreciate any suggestions... Have I missed
{} something obvious?

Well, yeah. Except for an idea, you don't have anything. So, you're
missing something bloody obvious: code.

{} It has been suggested the full path is not specified but I dont know this
{} and the host doesn't always reply to emails.
{} If the root directory is indeed the problem does anyone know this servers
{} path please?= http://www.portland.co.uk

Perhaps you should ask your system administrator. Why on earth do you
think this group knows about your local politics? You wouldn't ask here
what colour underwear your spouse is wearing either, would you?

{} <A href="http://graphi.port5.com/free.htm"><form action=
{} "http://graphi.port5.com/cgi-bin/freelinks/free.cgi" method=post>
{} 
{} #!/usr/local/bin/perl
{} $freelocation = "http://graphi.port5.com/freelinks.html";
{} $freepath = "http://graphi.port5.com/free.htm";
{} $cgilocation = "http://graphi.port5.com/cgi-bin/freelinks/free.cgi";
{} -- -- -- -- -- --


If this is your entire program, then don't expect much to happen.



Abigail
-- 
BEGIN {$^H {q} = sub {pop and pop and print pop}; $^H = 2**4.2**12}
"Just "; "another "; "Perl "; "Hacker\n";


------------------------------

Date: Wed, 20 Sep 2000 07:51:52 +0200
From: tony@svanstrom.com (Tony L. Svanstrom)
Subject: Re: Pure perl encrypt/decryption?
Message-Id: <1eh8yup.12zxv2p1wpkh1vN%tony@svanstrom.com>

Andy Flisher <andrew.flisher@onyx.net> wrote:

> In article <8q7fmf$3pm$1@nnrp1.deja.com>, grymoire@my-deja.com says...
> > In article <8q60qe$eni$1@nnrp1.deja.com>,
> >   grymoire@my-deja.com wrote:
> > 
> > > That should do it! Thanks!
> > Oops! it only encrypts the first 8 characters.
> > I'll have to do it in chunks, I guess
> 
> Encrypting's not too much of a hardship, just through 8 Bytes at a time
> at it, it's the decoding that gave me grief.
> 
> Splitting text on the way in is easier as it's 8 chars, but there's no
> guarantee that you're gonna get 8 chars back.  Ideally I would like to
> append the encrypted chunks together into one string and output to 
> wherever, and then read back int, split, and decrypt, but can't fathom
> out how?
> 
> The only thought that sprang to mind was to either seperate the chunks
> with \n and then chomp on the way back in, but to be honest haven't tried
> it.  Theories would be useful on this one, else I'm back to piping output
> through PGP again :-( 

As long as you know what you're doing (RTFM and/or check the output) you
can pad it anyway you like, \n is most likely the best solution though;
simply because it's quite unlikely that something like that will use \n
in its output.


     /Tony
-- 
     /\___/\ Who would you like to read your messages today? /\___/\
     \_@ @_/  Protect your privacy:  <http://www.pgpi.com/>  \_@ @_/
 --oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
   on the verge of frenzy - i think my mask of sanity is about to slip
 ---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
    \O/   \O/  ©99-00 <http://www.svanstrom.com/?ref=news>  \O/   \O/


------------------------------

Date: Wed, 20 Sep 2000 09:29:57 +0100
From: Andy Flisher <andrew.flisher@onyx.net>
Subject: Re: Pure perl encrypt/decryption?
Message-Id: <MPG.143285e455e6f64898968c@nntp.onyx.net>

In article <1eh8yup.12zxv2p1wpkh1vN%tony@svanstrom.com>, 
tony@svanstrom.com says...
 
> As long as you know what you're doing (RTFM and/or check the output) you
> can pad it anyway you like, \n is most likely the best solution though;
> simply because it's quite unlikely that something like that will use \n
> in its output.
> 
What I figured, I'll have to find time to go back and play with this.  
We've worked recently piping through mcrypt, but would prefer to keep it 
in with the script.

We'll see how it goes, cheers.
-- 
Andy Flisher

'All postings are a reflection of my state of mind,
and not necessarily of any worthwhile opinion'

news@flish.co.uk    http://www.flish.co.uk


------------------------------

Date: Wed, 20 Sep 2000 10:32:14 +0100
From: Andy Flisher <andrew.flisher@onyx.net>
Subject: Re: Pure perl encrypt/decryption?
Message-Id: <MPG.14329478371ecf0998968d@nntp.onyx.net>

In article <MPG.143285e455e6f64898968c@nntp.onyx.net>, 
andrew.flisher@onyx.net says...
> In article <1eh8yup.12zxv2p1wpkh1vN%tony@svanstrom.com>, 
> tony@svanstrom.com says...
>  
> > As long as you know what you're doing (RTFM and/or check the output) you
> > can pad it anyway you like, \n is most likely the best solution though;
> > simply because it's quite unlikely that something like that will use \n
> > in its output.

As a follow up this works a treat,  basically take your string to encode 
and loop through this putting each 8bytes into an array.

Then loop through the array, encrypt each element, and put the returned 
into a string with a \n at the end, ie

$encrypted .= $blowfish->encrypt($split_text[$i])."\n";

To Decrypt simply read the string in line by line (assuming from file 
here, but simply seperate on \n if from elsewhere) and chomp.  Each 
section being put into an array.  Then again beform opposite of aove 
decrypting each element and put back into a single string.

Works well, fast, and still pure perl.

-- 
Andy Flisher

'All postings are a reflection of my state of mind,
and not necessarily of any worthwhile opinion'

news@flish.co.uk    http://www.flish.co.uk


------------------------------

Date: Wed, 20 Sep 2000 07:47:58 GMT
From: pjlees@ics.forthcomingevents.gr (Philip Lees)
Subject: Re: Regex Problem
Message-Id: <39c86a36.420584@news.grnet.gr>

On Tue, 19 Sep 2000 09:56:46 -0700, Larry Rosler <lr@hpl.hp.com>
wrote:


>> 	s/(\d)\1(?!\1)(\d)\2(?!\1|\2)(\d)\3/$1$1$2$2$3$3/ or print "
>> Invalid!";
>> 	print " $_\n";
>> }
>
>The regex is a good effort, though lacking the requisite end-anchors.  
>But using it in a substitution that replaces what it matches by itself 
>is inapt.  Simply matching is enough:
>
> 	/^(\d)\1(?!\1)(\d)\2(?!\1|\2)(\d)\3$/ or print "Invalid!";

Of course, you're right. My brain fart. The testing code was copied
from something else that did some reformatting of the matched pattern
before output and the use of s is quite redundant here.

Thanks for the tip about the end-anchors, though I'm not clear about
why they're necessary in this case. Is the idea to avoid matching,
say, 3344555, or 3334455?

Phil
--
Philip Lees
ICS-FORTH, Heraklion, Crete, Greece
Ignore coming events if you wish to send me e-mail
'The aim of high technology should be to simplify, not complicate' - Hans Christian von Baeyer


------------------------------

Date: Wed, 20 Sep 2000 14:33:52 +0930
From: "Wyzelli" <wyzelli@yahoo.com>
Subject: Re: Reload, Reload, and No-Cache
Message-Id: <xxXx5.28$Ad2.4430@vic.nntp.telstra.net>

"BUCK NAKED1" <dennis100@webtv.net> wrote in message
news:15013-39C82CC6-143@storefull-244.iap.bryant.webtv.net...
> Is there a perl code that will refresh a page like Javascript does. I
> need to re-load a page from the source, and I can't use JS.
>
> Also, is there a perl code for cancelling the cache. The meta tag
> "no-cache" is unreliable. I want the page to reload from the webserver
> each time.
>

Set the page to expired using the expires header from cgi.pm.

See the cgi.pm docs for an example.

wyzelli




------------------------------

Date: Wed, 20 Sep 2000 07:07:24 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: rename Vs system mv
Message-Id: <teogss4i0qkq51er2qi32gv6hppacq5nu8@4ax.com>

tonyforster@zoom.co.uk wrote:

>Although when I use system("mv"...) in the perl script, the file gets
>moved, but $! catches an "Illegal seek".

Does system() return an error, i.e. a value *different* from zero? If
not, simply ignore $!. If so, yet the file is moved, that sounds like a
bug in mv.

-- 
	Bart.


------------------------------

Date: Wed, 20 Sep 2000 08:36:27 +0100
From: "Glyndwr" <glynFOOdwr@FSCKdeleteEmeD.co.uk>
Subject: Re: Split NS Log File
Message-Id: <3MZx5.165$Rk1.2314@news2-win.server.ntlworld.com>

"Yanick Champoux" <yanick@babyl.sympatico.ca> wrote in message
news:J4Ox5.254775$Gh.6232453@news20.bellglobal.com...
> : Hehe, hidden assumptions. Doncha just hate them?
>
> With all my heart. :)

:oD

> :>(oh, '.' in a [] is just that, a dot. no need to backlash)).
>
> : Ah, I didn't know that, although in hindsight it's obvious.
>
> Eh. For such a wee cluster of pixels, the dot is quite
> perlyvalent. After all, we can write
>
> print 1..2, "blah" . join '.', $., $foo =~ /.\.[.,]/ for 1...2;
>
> which use the dot in... uh, a lot of contexes. :)

Now you're just showing off ;o)

> m//x is out friend...
>
> $foo =~  /^(\S+) # begin by the IP address
>   .*?\[     # munch till the date
>   (.*?)]    # get the date
>   [^"]*?    # don't tell my mother I said that
>   ...       # etc
> /x;

Yes. I should do this more often in my scripting.

> : That is quite neat. Nice.
>
> Thank! |)

You're welcome.

--
                                           -=G=-
print join " ",reverse split /\s+/,'hacker. Perl another Just',"\n";
Web: http://www.fscked.co.uk                             ICQ: 66545073




------------------------------

Date: Wed, 20 Sep 2000 09:45:15 +0000
From: geoff@jungle.com
To: Chad Williams <chad.williams@bellsouth.com>
Subject: Re: system load analysis tools
Message-Id: <39C8872A.E9F7BC18@jungle.com>

Chad Williams wrote:
> 
> I want to collect system load data (solaris 2.6 mostly) via korn shells
> that do things like vmstat, iostat, etc. and then use perl to parse the
> data into meaningful/user friendly formats.
> 
> I was thinking it would be nice to graph the data some how in .gifs .
> Are there particular modules for this?

No need for shell scripts! Perl has the answer.

Check out the following CPAN modules:

http://search.cpan.org/search?dist=Solaris
http://search.cpan.org/search?dist=Solaris-Procfs
http://search.cpan.org/search?dist=Filesys-DiskFree

The first is a useful interface to Solaris' KStats (cpu load etc). It
comes with some examples of replicating iostat/vmstat output using
KStat. The last is a simple interface to the 'df' command.

Used in conjunction with:

http://cricket.sourceforge.com

You can get a really powerful system monitoring setup quite easily with
nice graphs too!

Atenatively, write your data to a DB (using DBI modules) and use
GD::Graph ( or similar ) via CGI/mod_perl to draw whatever graphs you
like.

Hope this helps

Geoff
:x!


------------------------------

Date: Wed, 20 Sep 2000 09:53:01 +0000
From: geoff@jungle.com
To: Chad Williams <chad.williams@bellsouth.com>
Subject: Re: system load analysis tools
Message-Id: <39C888FD.472BB75E@jungle.com>

> 
> http://cricket.sourceforge.com
> 

Whoops! That should be:

http://cricket.sourceforge.net

Geoff


------------------------------

Date: Tue, 19 Sep 2000 22:46:46 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: What bits and pieces needed to compile modules on Win32
Message-Id: <39C84F46.89F78E2E@vpservices.com>

Bob Objects wrote:
> 
> I ned to compile some modules (DBD:Oracle 1.06) for Win32 x86.
> ActiveState's binary version is still 1.03.  But, I've never done it before.
> 
> Can anyone tell me the names of the programs I need.  Cygwin is the best
> source for the GNU C compiler, but you have to know what you are looking for
> (i.e. gcc-blah.tar ).  I don't know what linker, maker (Microsoft
> nmake15.exe suggested) and the names of these files.
> 
> C Compiler     gcc
> Linker             ?
> make              Microsoft nmake
> other??


Some modules can be "made" with just nmake, others need a compiler.  The
key thing in that case is that the compiler must be the same one as used
to make your perl.  Since ActiveState perl was compiled with Borland
C++, you must either use that to compile the modules that need
compiling, or else start over and rebuild perl with gcc.

-- 
Jeff


------------------------------

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 4383
**************************************


home help back first fref pref prev next nref lref last post