[9858] in Perl-Users-Digest
Perl-Users Digest, Issue: 3451 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Aug 15 01:07:16 1998
Date: Fri, 14 Aug 98 22:00:17 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 14 Aug 1998 Volume: 8 Number: 3451
Today's topics:
ActivePerl 5.005 vs GS binary dist dturley@pobox.com
Re: Anyone ever successfully register some perl code as kingm1706@my-dejanews.com
Re: clp.moderated setup info? (Craig Berry)
Re: comparing files in perl ilao@my-dejanews.com
Re: comparing files in perl (Mark-Jason Dominus)
Re: File updating question <ketanp@NOSPAMxwebdesign.com>
Help with hashes and file handles please... <carlor@sympatico.ca>
Re: HELP: asterisk(*) on SYSTEM command (Craig Berry)
Re: here's an implementation of diff in perl (Mark-Jason Dominus)
Re: Index-Counter in foreach-Block!? (Mark-Jason Dominus)
making -w happy (Rich Morin)
Re: Matts counter - suddenly stopped working (Mark-Jason Dominus)
newbie-module writting <stalnaker@acm.org>
Re: OLE Perl Excel (Jan Dubois)
Re: Recommend a good editor (Abigail)
Re: Recommend a good editor dturley@pobox.com
Re: Recommend a good editor <cowanb@mindspring.com>
Re: Recommend a good editor <nguyend7@msu.edu>
Re: Recommend a good editor (Nathan V. Patwardhan)
Re: Upload file running on NT <perlguy@inlink.com>
Re: Using Perl module without access to Perl installati (M.J.T. Guy)
Where to find cdk-4.9.3 <zhangh@afmedia.com>
Re: X-file (?=...), case postponed. (Patrick Timmins)
Re: year 2000 delete question (Abigail)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 15 Aug 1998 00:54:09 GMT
From: dturley@pobox.com
Subject: ActivePerl 5.005 vs GS binary dist
Message-Id: <6r2m7g$di7$1@nnrp1.dejanews.com>
I've long enjoyed using the GS distribution of Perl 5.004, but have been
trying to work with the ActiveState release of 5.005. The basic exe installs
fine but I have yet to be able to install a single module using dmake. This
was a simple process with the GS port. It also appears that you have little
choice in the installation since the interpreter expects to find things in a
certain spot in the tree relative to the binary.
Am I correct in assuming that the only modules one can use are those that AS
puts on it's site for installation?
Are my experiences par for the course? I'd really like to hear feedback on how
the AS build is working for others.
I read this group and will also summarize email replies for posting.
(And if anyone has been able to build perl with mingw32/gcc on win95, not NT,
I'd like to hear also. :-)
cheers,
david
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Sat, 15 Aug 1998 01:38:12 GMT
From: kingm1706@my-dejanews.com
Subject: Re: Anyone ever successfully register some perl code as an NT service?
Message-Id: <6r2oq5$gvt$1@nnrp1.dejanews.com>
Use the instsrv.exe and srvany.exe that come with the Windows NT Resource kit
to install any program (including a PERL app) as a service.
It goes something like this -- go into the directory where your perl code is:
c:\path to file\instsrv YOURPERLCODENAME c:\path to file\srvany.exe
Then, start Registry Editor and look for:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\YOURPERLCODENAME
Select Edit, New, Key and create a "Parameters" key.
Select Edit,New,String Value and create the following keys:
Application c:\perl\bin\perl.exe
AppParameters c:\path to file\yourperlcode.pl
AppDirectory c:\path to file
Then go to the Control Panel, Services. Find YOURPERLCODENAME, select it, and
click on Startup.
Make the Startup type AUTOMATIC and make Log On As: administrator (or another
user with comparable
access).
That's the way to do it!
--Michael King
--VM Online
--Temecula, CA USA
In article <6r21kd$9k1$1@nnrp1.dejanews.com>,
malloc@my-dejanews.com wrote:
> I've got a perl daemon that I would *love* to add as an NT service. I have
> toyed with the sc.exe utility and the program registered itself as a service,
> but it will not start. I'm not that keen on programming in the NT environment
> - it's just not my background - but it looks like it's got to be native win
> code to run. Is that true? It might be the way I've structured the parameters
> to sc.exe, but I doubt it b/c I tried ever option and loophole I can think of
> (including creating a batch file to call my perl daemon). Maybe if I prepare
> a snippet of C code to just call the perl program? Might that would do it?
> Anyone ever do anything like this? I would sell my soul for a NT version of
> "nohup &" right now!!
>
> Any input is appreciated,
> scott
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 14 Aug 1998 23:56:12 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: clp.moderated setup info?
Message-Id: <6r2iqs$cfh$4@marina.cinenet.net>
Thanks to those who've helped out with this; I've forward everything on
this thread to my ISP's news admin. Now comes the waiting, fingers
crossed...
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Sat, 15 Aug 1998 02:00:46 GMT
From: ilao@my-dejanews.com
Subject: Re: comparing files in perl
Message-Id: <6r2q4f$is9$1@nnrp1.dejanews.com>
In article <6pfvpm$9ue$1@monet.op.net>,
mjd@op.net (Mark-Jason Dominus) wrote:
>
> In article <35B78E82.490B@min.net>, John Porter <jdporter@min.net> wrote:
> >Actually, I have already whipped up a version that does exactly that.
> >It was AMAZINGLY faster than without memoize.
>
> All this talk got me interested, so I wrote `diff' in Perl. Most of
> the interesting work is in the Algorithm::LCS module, which I'll be
> uploading to CPAN sometime soon. It's not even too slow to use.
> Once some interface issues are worked outI think it'll be very handy
> for people who want better control over the output of `diff'.
>
> Unfortunately, I don't have time to put in on my web page today, but
> it should be along soon, and I'll announce it when it is.
>
>
Hi Mark,
Where can I find the library or source codes for Diff in Perl ? I believed
you did write one. Thank you.
Ieng
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 15 Aug 1998 04:41:28 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: comparing files in perl
Message-Id: <6r33ho$sip$1@picasso.op.net>
In article <6r2q4f$is9$1@nnrp1.dejanews.com>, <ilao@my-dejanews.com> wrote:
>In article <6pfvpm$9ue$1@monet.op.net>,
>Where can I find the library or source codes for Diff in Perl ? I believed
>you did write one. Thank you.
http://www.plover.com/~mjd/perl/diff/
It is not quite complete. The output is in the wrong format. But it
should be very easy to add new output routines, because the module is
very flexible. Maybe you could do that and send me the code so I can
put it in.
Tim Bunce already sent me a nice sample that takes
ABCEFHKYZ
BCDEGNKL
and turns it into
A B C D E F H K Y Z
B C D E G N K L
--
mjd@pobox.com Mark-Jason Dominus
mjd@plover.com Plover Systems, Philadelphia, PA
------------------------------
Date: Fri, 14 Aug 1998 20:49:49 -0400
From: Ketan Patel <ketanp@NOSPAMxwebdesign.com>
Subject: Re: File updating question
Message-Id: <35D4DB2D.8B2FE153@NOSPAMxwebdesign.com>
Mark-Jason Dominus wrote:
> Suppose programs A and B are running simultaneously.
>
> Someone executes A.
> A opens $datapath, which erases it completely.
> A locks $datapath.
> A A writes a lot of data to $datapath.
> Someone executes B.
> B opens $datapath, which erases it completely.
> B tries to lock $datapath, finds it locked by A, and blocks.
> A discovers that the file has been unexpectedly erased and goes berserk.
>
> Locks don't affect `open'; the only affect `flock'.
So how do I prevent B from opening the file before A is completely done
with it? Am I supposed to be using 'flock' is this case?
Thanks for the help...
------------------------------
Date: Sat, 15 Aug 1998 03:10:14 GMT
From: Carlo Robazza <carlor@sympatico.ca>
Subject: Help with hashes and file handles please...
Message-Id: <35D4FC59.5E9859BD@sympatico.ca>
Hi there,
I'm VERY new to Perl and I am having a problem with storing
file handles in a hash table. I am reading in a variable sized list of
file names from the command line. I want to open each file and
store the file name as the key and the file handle as the value of
the hash table.
Is this possible and if so, how?
Thanks,
Carlo.
------------------------------
Date: 14 Aug 1998 23:51:43 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: HELP: asterisk(*) on SYSTEM command
Message-Id: <6r2iif$cfh$3@marina.cinenet.net>
Nestor Florez (nestor@sd.cadence.com) wrote:
: OK, I look at the globbing command on page 140 of the camel and it says
: that if I use a command as:
: @a= </etc/host*>;
Yes, or equivalently (with a syntax I prefer)
@a = glob '/etc/host*';
(The other form is just *way* too easy to confuse with the filehandle-
reading <> operator.)
: This will give me back all the files that start with 'host' in the /etc
: directory.
Yep.
: Is there a way in PERL to use the "cp -r /etc/host* /tmp" using a single
: command as:
: system("cp -r /etc/host* .tmp")
^ I presume this should be /
Well, that system() call as you've typed it (modulo . to /) should work,
provided you have appropriate read and write permissions.
: Or do I have no choice but to use a loop?
: foreach $file (@a)
: {
: system("cp $file $directory");
: }
Well, using File::Copy is probably preferable to either.
: >: @args = ("ls", "-lt", "*", "\*", "?\*.pl");
: > ^ ^
: >
: >What are these backslashes supposed to be doing? They are meaningless as
:
: The slashes where there, because I was testing the command on a print
: statement.
But they don't *do* anything, in a print call or elsewhere.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 14 Aug 1998 20:15:35 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: here's an implementation of diff in perl
Message-Id: <6r2jv7$rmp$1@monet.op.net>
Keywords: calendar countrify Mukden ragout
In article <35D35CCC.938C5AAF@lsi.sel.nospam.sony.com>,
Eugene Koontz <ekoontz@lsi.sel.nospam.sony.com> wrote:
>hope it's useful to someone...
It's very nice. It needs a little work, but so does mine.
Let's see who can get finished first. You can have a week head start
because I won't be able to work on it while I'm at TPC.
It's a funny thing about `diff': it's very easy to write one, but not
so easy to write a good one. A trivial `diff' program would look like
this:
while (<F1>) {
print "- ", $_;
}
while (<F2>) {
print "+ ", $_;
}
That is, you would ask it how to turn file 1 into file 2, and it would
say that you could do that by deleting all the lines from file 1 and
replacing them with all the lines from file 2. It would be completely
correct, and if you used the right output format, you could feed it to
`patch' and it would work fine. Of course, it would not be very
valuable, because the patch files would be twice as big as the source
files, and because it would not actually show you where the
differences were.
This extreme example shows that one important measure of the quality
of a diff program is whether it finds a small set of differences.
The example program I showed was not useful because the differences it
found were too large, and there is a smooth continuum of quality here.
Consider the following two lists:
xbyczpdq
bcaxbycz
One way to describe the differences is like this:
xbyc zpdq
b caxbycz
That is: `Remove the x, remove the y, add axbyc in the middle, and
remove pdq from the end'. This is the diff that your program finds.
(Actually, yours has a bug, but it looks like that's what it wants to
find.) And this is not too bad. But the only common elements it has
found are the first b, the first c, and the z; it did not notice that
both sequences contained xbycz:
xbyczpdq
bcaxbycz
The description is `Add bca at the beginning and remove pdq from
the end.' Finding this is more work, and it takes longer, but the
tradeoff is probably worth while because the answer is more
insightful and the resulting diff is smaller.
Isn't this an interesting problem?
------------------------------
Date: 15 Aug 1998 00:59:13 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: Index-Counter in foreach-Block!?
Message-Id: <6r2mh1$mft$1@picasso.op.net>
Keywords: Kiwanis, cheap, deter, nebulous
In article <6qvdvr$en3$1@client3.news.psi.net>,
Abigail <abigail@fnx.com> wrote:
>Is it that hard to type '$i ++' ?
I think so. I've been meaning for several months to add a special
variable that does exactly what this guy wants, but I don't know
enough yet to accomplish it. Soon, soon.
>Having Perl keep track would be impractical.
Says you.
>and what would you be doing in the case of nested loops
Something reasonable. What does $. do if you interleave reads to
several files?
--
mjd@pobox.com Mark-Jason Dominus
mjd@plover.com Plover Systems, Philadelphia, PA
------------------------------
Date: Fri, 14 Aug 1998 21:41:08 -0700
From: rdm@cfcl.com (Rich Morin)
Subject: making -w happy
Message-Id: <rdm-1408982141100001@140.174.42.30>
[Posted from Rich's account becaue mine isn't working right now.]
I've got a script I'm refurbishing that's doing a require of a common
"include" file. It can't do a use because this isn't a module; it's a .ph
(header) file - just a bunch of common project-wide declarations and
definitions. Don't tell me to make it into a module; there are politics
involved, not the least of which involve a large extant body of legacy
Perl 4 code.
-w is complaining (-w needs to chill :-) because a few variables are "used
only once". That's because they are used only once ;-) - actually, they
are defined in the require'd file and used once in the script. But -w
doesn't peek into the require'd file (which is actually to the good as
most of the defined stuff in that file is never used in this script;
thanks for small favors).
Is there a way for me to tell -w that this variable has been defined in
the require'd file? Or do I just muddle through till I'm done refurbing
the code and then take out the -w?
I don't want to redefine these variables in the script; that's what the
common header file is for.
Am I missing something obvious?
I hate to say this, but for similar political reasons, this is Perl 5.003
I'm talking about. Solutions relevant only to 5.005 will be gratefully
accepted and filed away for later but will not be directly useful to the
problem at hand :-(
RSVP by email (posts OK but I probably won't see them; this list is too
big and my time is too small).
- Vicki Brown (mailto:vlb@incyte.com; mailto:vlb@cfcl.com)
------------------------------
Date: 15 Aug 1998 01:04:55 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: Matts counter - suddenly stopped working
Message-Id: <6r2mrn$mgd$1@picasso.op.net>
Keywords: brake, indecisive, inexplainable, tsar
In article <6r0bov$leq$2@client3.news.psi.net>,
Abigail <abigail@fnx.com> wrote:
>Finally a sensible program from Matt! A counter that doesn't move!
Isn't that a nice idea? I've had one on my home page for a few months
now. I forget what number it shows, but it's a big, impressive one,
and since it's just a gif file it loads more quickly than other
counters that do change.
--
mjd@pobox.com Mark-Jason Dominus
mjd@plover.com Plover Systems, Philadelphia, PA
------------------------------
Date: Fri, 14 Aug 1998 20:53:30 -0700
From: "Max M. Stalnaker" <stalnaker@acm.org>
Subject: newbie-module writting
Message-Id: <6r312k$ppt$1@usenet1.interramp.com>
I have been maintaining these perl cgi scripts on NT using activestate port
for a couple years. I now need to make some repetitive modifications and
would like to a subroutine placed in another file, but I do not quite have
the hang of it.
Suppose in login.pl
...
use common qw(buttons);
...
print '<h2><center>Stock Status</center></h2>';
buttons(" ");
in common.pm
package common;
use Exporter ();
@ISA = qw(Exporter);
@EXPORT = qw(buttons);
@EXPORT_OK = qw();
sub buttons($user){
print '<P><P>';
return
}
...
Result in browser is:
common.pm did not return a true value at c:\InetPub\scripts\login.pl line 9.
BEGIN failed--compilation aborted at c:\InetPub\scripts\login.pl line 9.
For what it is worth, I think this may have something to do with those naked
1's in some packages, but I can not quite see where to put them. Thank you
for any assistance.
------------------------------
Date: Sat, 15 Aug 1998 04:18:30 +0200
From: jan.dubois@ibm.net (Jan Dubois)
Subject: Re: OLE Perl Excel
Message-Id: <35d6e320.29533496@news2.ibm.net>
[mailed & posted]
olivierh3964@my-dejanews.com wrote:
>I am trying to read the container of a cell instead of its value in Perl.
>
>To read its value I would do :
>
>my $Variable = $ex->Range("A1")->{Value};
>
>Assuming that A1 point to B5, I want to set my variable to "B5".
>
>Here is the context. I am writing a perl script that would read certain cells
>on a spreadsheet containing variable names and links to them ( aka "B5" ).
>The ouput will be another perl script. In other word I am trying to
>autogenerate a perl script by reading the info from an Excel spreadsheet.
>
>If anybody tried this, what is the syntax ?
I'm not quite sure what you mean by "point to". If you mean it contains the
formula "=B5", then you can retrieve it with (surprise, surprise)
my $Variable = $ex->Range("A1")->{Formula};
But formulas may contain arbitrary Excel expressions and might "point to"
multiple other cells with absolute/relative/symbolic references.
-Jan
------------------------------
Date: 14 Aug 1998 23:57:35 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Recommend a good editor
Message-Id: <6r2itf$mlj$3@client3.news.psi.net>
Steve Bohler (skbohler@sprynet.com) wrote on MDCCCIX September MCMXCIII
in <URL: news:6r1qlj$90f@sjx-ixn1.ix.netcom.com>:
++ I've searched through previous posts, but am not finding a recommendation
++ for an easy-to-use Perl editor that runs on Windows. I've used emacs
++ before, but was wondering if there was something better.
There are ports of vi and vi-derivates to DOS and its children.
Abigail
--
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s}
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)};
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))
------------------------------
Date: Sat, 15 Aug 1998 00:41:09 GMT
From: dturley@pobox.com
Subject: Re: Recommend a good editor
Message-Id: <6r2lf5$cga$1@nnrp1.dejanews.com>
In article <6r1qlj$90f@sjx-ixn1.ix.netcom.com>,
"Steve Bohler" <skbohler@sprynet.com> wrote:
> I've searched through previous posts, but am not finding a recommendation
> for an easy-to-use Perl editor that runs on Windows.
Well, UltraEdit is a super text editor for windows. You have to edit your own
perl code :-) but its a great place to type it into.
see www.ultredit.com
cheers,
david
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Fri, 14 Aug 1998 22:48:49 -0400
From: Bill Cowan <cowanb@mindspring.com>
Subject: Re: Recommend a good editor
Message-Id: <35D4F711.43D2B798@mindspring.com>
Steve Bohler wrote:
>
> I've searched through previous posts, but am not finding a recommendation
> for an easy-to-use Perl editor that runs on Windows. I've used emacs
> before, but was wondering if there was something better.
>
See large list of editors at:
http://reference.perl.com/query.cgi?editors
-- Bill
------------------------------------------------------------------------
Metagenix, Inc: Leading the Way in Data Migration.
Web: http://www.metagenix.com/ for more datails.
Bill Cowan, bcowan@metagenix.com, Voice: 919-210-4910 Fax: 919-489-2621
Applying Perl-based toolkit and methodology to data migration process.
------------------------------
Date: 15 Aug 1998 03:53:10 GMT
From: Dan Nguyen <nguyend7@msu.edu>
Subject: Re: Recommend a good editor
Message-Id: <6r30n6$ep0$1@msunews.cl.msu.edu>
In comp.lang.perl.misc Steve Bohler <skbohler@sprynet.com> wrote:
: I've searched through previous posts, but am not finding a recommendation
: for an easy-to-use Perl editor that runs on Windows. I've used emacs
: before, but was wondering if there was something better.
What could be better than emacs?
--
Dan Nguyen | There is only one happiness in
nguyend7@msu.edu | life, to love and be loved.
http://www.cse.msu.edu/~nguyend7 | -George Sand
------------------------------
Date: 15 Aug 1998 04:26:49 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Recommend a good editor
Message-Id: <6r32m9$61a@fridge.shore.net>
Dan Nguyen (nguyend7@msu.edu) wrote:
: What could be better than emacs?
Oh no. I smell something bad.
Thread goes boom. *plonk*
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: Wed, 12 Aug 1998 15:07:06 -0500
From: Brent Michalski <perlguy@inlink.com>
To: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Upload file running on NT
Message-Id: <35D1F5EA.1BBA50CE@inlink.com>
Tom Phoenix wrote:
>
> On Wed, 12 Aug 1998, Brent Michalski wrote:
>
> > open(MYHANDLE,">ldjfdjfsjdfjsdj");
>
> Even when your script is "just an example" (and perhaps especially in that
> case!) you should _always_ check the return value after opening a file.
> Thanks!
>
Tom is absolutely right!
Although my example *may* work, if you weren't able to open the file for
some reason, you sould never know it!
Brent
--
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Brent Michalski $
$ -- Perl Evangelist -- $
$ E-Mail: perlguy@technologist.com $
$ Resume: http://www.inlink.com/~perlguy $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
------------------------------
Date: 15 Aug 1998 00:23:26 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Using Perl module without access to Perl installation
Message-Id: <6r2kdu$a4$1@pegasus.csx.cam.ac.uk>
In article <6r2bll$s1d$1@nnrp1.dejanews.com>, <roguemouse@yahoo.com> wrote:
>My ISP has Perl installed for use by the ISP's customers.
>
>I want to use a particular Perl module from CPAN which is not not part of the
>ISP's Perl installation.
>
>Since my ISP will not allow me to modify their Perl installation, how do I
>use the desired Perl module without having to build and install my own
>private Perl installation?
perldoc perlfaq8
How do I keep my own module/library directory?
When you build modules, use the PREFIX option when
generating Makefiles:
perl Makefile.PL PREFIX=/u/mydir/perl
then either set the PERL5LIB environment variable before you
run scripts that use the modules/libraries (see the perlrun
manpage) or say
use lib '/u/mydir/perl';
See Perl's the lib manpage for more information.
Mike Guy
------------------------------
Date: Fri, 14 Aug 1998 16:40:59 -0700
From: Hong Zhang <zhangh@afmedia.com>
Subject: Where to find cdk-4.9.3
Message-Id: <35D4CB0B.619B4E4E@afmedia.com>
HI, All
I want to compile cdk with perl. But can't find the cdk-4.9.3 source.
The
URL listed in cdk-4.9.1 readme file is no longer valid. I also searched
dejanews and altavista.
Any info is greatly appreciated.
HZ
zhangh@earthlink.net
------------------------------
Date: Sat, 15 Aug 1998 03:59:35 GMT
From: ptimmins@netserv.unmc.edu (Patrick Timmins)
Subject: Re: X-file (?=...), case postponed.
Message-Id: <6r3138$rfg$1@nnrp1.dejanews.com>
In article <1ddq7ah.1aikknf1vsp1hcN@bay1-557.quincy.ziplink.net>,
rjk@coos.dartmouth.edu (Ronald J Kimball) wrote:
[snip]
> Um... You're still insisting that regexes are mathematical expressions,
> and you still don't get it.
I never said this, am not saying this, and never will say this (are
you a Democrat, per chance? :), and you still don't get it. I said regexes
OBEY mathematical rules of parenthetical precedence. Thats like me saying
"Volkswagons and Jaguars both have four wheels." and you coming along
and saying "Um ... why do you keep insisting that Volkswagons are Jaguars?
Volkswagons most certainly are *not* Jaguars.". You're trying to cover
yourself alright, but boy, are you transparent. Keep it up though. I'm
enjoying the "spin control" you're trying to put on your position!
> No, we haven't shown that. You still don't get it.
Yes, we have shown that. You still don't get it. Should I have used
the term "determined" or "finalized" or something else in place of
"evaluated"? Would the removal of that particular 'quibbling tree'
of yours have allowed you to see the forest? Let's see:
/(one(tw.))/; # buckle my shoe?
"In the event of a successful match, the value of the sub-expression
that will become $1 is entirely dependent on the value of the
sub-expression that will become $2. We can only know the final value
of the sub-expression that will become $1 after we have determined the
final value of the subexpression that will become $2." This is the
essence of my argument Ronald. Where did I lose you? Can you cite some
examples where this is not the case? I could cite you millions of examples
where it is the case (or how ever many are in 'all' :)
I'm sorry that you're having such a tough time understanding that the
regex engine is able to accomplish this phenomenon by using only left to
right processing in combination with backtracking, but this *is* the truth.
> In closing, regular expressions do not obey mathematical rules of
> precedence. Regexes are not evaluated from the inside out.
>
> Regexes are evaluated from left to right.
In closing, regexes obey mathematical rules of parenthetical precedence.
Regexes are not evaluated from the inside out (I never said they were).
Regexes are evaluated from left to right.
(Hey Ronald, you got 2 out of 3 right, that's not bad! And the way they
accomplish the first is through backtracking ;)
Patrick Timmins
U. Nebraska Medical Center
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 15 Aug 1998 00:10:48 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: year 2000 delete question
Message-Id: <6r2jm8$mlj$4@client3.news.psi.net>
Steve . (syarbrou@ais.net) wrote on MDCCCIX September MCMXCIII in
<URL: news:35d45c5f.2157702@news.ais.net>:
++ I have a script in which finishes up by deleting all files older than
++ 90 days on a Solaris box. The line is:
++
++ find /home/cpws/cpws/archive -name "*.gz" -mtime +90 -exec rm {} \;
++
++ Anything I should worry about when the year 2000 hits? Thanks.
Seems like you've posted your email to Sun support to a non-relevant news group.
Abigail
--
perl5.004 -wMMath::BigInt -e'$^V=new Math::BigInt+qq;$^F$^W783$[$%9889$^F47$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W98$^F76777$=56;;$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V%$^U;$^V/=$^U}while$^V!=$^W'
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 3451
**************************************