[10191] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3784 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Sep 22 11:07:24 1998

Date: Tue, 22 Sep 98 08:00:18 -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           Tue, 22 Sep 1998     Volume: 8 Number: 3784

Today's topics:
        [Q]Net::Ftp - How to set local dir? <raj.subramani@citicorp.com>
    Re: already made binaries for DEC_ALPHA? (Xeno Campanoli)
    Re: can MSWord and Adobe PDF docs be read for indexing? (David Cantrell)
    Re: can MSWord and Adobe PDF docs be read for indexing? (David Cantrell)
    Re: cat reese > /dev/null (was Re: Perl & Java - differ <borg@imaginary.com>
    Re: even/odd numbers droby@copyright.com
    Re: Help! - Perl & win95 IE 4.0. Run perls program from Kresimir.Puskaric@siemens.at
    Re: I need a script writen, can someone help me please <a.g.macinnes@rl.ac.uk>
    Re: JAPH: how does this .sig work? (Kevin Reid)
    Re: multi expression unless statement? <jdf@pobox.com>
    Re: Perl & Java - differences and uses (John Klassa)
    Re: Perl & Java - differences and uses <borg@imaginary.com>
    Re: Perl & Java - differences and uses <borg@imaginary.com>
    Re: problems using "use", HELP! <qdtcall@esb.ericsson.se>
    Re: Shell-scripts and #! ( big dilemma ) ! <ben.pavon@hsc.hac.com>
    Re: Square Root? <jdw@dev.tivoli.com>
        web site retrieval <cutts@ccrl.mot.com>
    Re: web site retrieval <Tony.Curtis+usenet@vcpc.univie.ac.at>
        What happened to perl.moderated? (Steffen Beyer)
    Re: where is Date::Parse (CPAN.pm)? (Steffen Beyer)
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Tue, 22 Sep 1998 14:59:41 +0100
From: Raj Subramani <raj.subramani@citicorp.com>
Subject: [Q]Net::Ftp - How to set local dir?
Message-Id: <3607AD4D.6D7431D3@citicorp.com>

In interactive ftp one can set lcd to /foo/bar
so that any get commands will store the remote
file in my /foo/bar dir.

The Net::Ftp modules does'nt seem to define such
an option.

Does one just say:
$ftp->get(remoteFile, /foo/bar/localFile);

Any help would be much appreciated.

Cheer
---
-raj


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

Date: 22 Sep 1998 14:35:52 GMT
From: xeno@aa.net (Xeno Campanoli)
Subject: Re: already made binaries for DEC_ALPHA?
Message-Id: <6u8ck8$s3n$1@slave2.aa.net>

Linux provides the best operating system for the DEC Alpha, and of course it also comes with one of the best C/C++ suites
available...GNU C/C++, as well as a lot of other really good stuff like Perl and Python.  Oh, and Linux is Free.

BUT, you know this is a Perl newsgroup, and you should probably look in the C/C++ and Linux newsgroups.

Kurt Lange (milkman@dave-world.net) wrote:
: My company is looking for the binaries that are already made for DBI and the
: DEC_ALPHA running vms 7.1.  My company does not want to buy a C Compliler.
: They are not cheap, we are just selling a product in which we don't want to
: require the customer to buy a C Compliler, just to run Perl DBI.  If there
: is someone out there willing to give or sell it to us(depending on the
: price), we would greatly appreciate.  Or maybe there is a free C Compliler
: for the DEC_ALPHA that we don't know about.  If anyone knows of a free or
: cheap C Compliler, we would appreciate knowing about it.

: Please reply by newsgroup(because someone out there might want to know
: also), but if it's a bother, don't worry about it.  However, I would like to
: be emailed at BOTH of the following email address...

: dmackin@gte.net
: milkman@dave-world.net

: Thank you very much.

: Desperate Internet Programmer



--
Xeno Campanoli
Onex - Linux consulting, software analysis, design, and implementation
Email:	xeno@aa.net


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

Date: Tue, 22 Sep 1998 13:03:18 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: can MSWord and Adobe PDF docs be read for indexing?
Message-Id: <360f9fe8.72053898@thunder>

On 22 Sep 1998 12:56:44 GMT,
  scott@softbase.com enlightened us thusly:

>James T. Vradelis (jvradelis@mediaone.net) wrote:
>> Pat Trainor wrote:
>> > They will be residing on a unix box and at my mercy.
>> You can write msword and excel files using the Win32::OLE module.
>
>Not on UNIX!

And I believe that you would still need Word or Excel on the machine
to be able to do that.

-- 
David Cantrell, part-time NT/java/SQL techie
                full-time chef/musician/homebrewer
                http://www.ThePentagon.com/NukeEmUp


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

Date: Tue, 22 Sep 1998 13:04:43 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: can MSWord and Adobe PDF docs be read for indexing?
Message-Id: <3610a023.72112151@thunder>

On 22 Sep 1998 12:56:07 GMT,
  scott@softbase.com enlightened us thusly:

>Pat Trainor (ptrainor@bbn.com) wrote:
>
>First, PDF is a variation on PostScript and can probably be read by
>anything that reads PostScript, *BUT* -- PostScript is definitely a
>"write-only" language.

It may be 'write-only' for a computer (conveniently ignoring
Ghostscript's rendering engine ;-) but it _is_ human readable.
Knowledge of Forth helps.

-- 
David Cantrell, part-time NT/java/SQL techie
                full-time chef/musician/homebrewer
                http://www.ThePentagon.com/NukeEmUp


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

Date: Tue, 22 Sep 1998 13:47:48 GMT
From: George Reese <borg@imaginary.com>
Subject: Re: cat reese > /dev/null (was Re: Perl & Java - differences and uses)
Message-Id: <8UNN1.1333$Ge.4172799@ptah.visi.com>

Ahh, yes, let's all be judged by the code we wrote a decade ago in
college.

In comp.lang.java.programmer Abigail <abigail@fnx.com> wrote:
: Uri Guttman (uri@sysarch.com) wrote on MDCCCXLVIII September MCMXCIII in
: <URL: news:x790jcx4wx.fsf_-_@sysarch.com>:
: ++ 
: ++
: ++ to sumarize, reese has no sense of humor, no sense of programming
: ++ history, no knowledge of turing machines and turing computability, a
: ++ narrow view of allowable syntax and semantics, a zealotic view on the
: ++ right way to do anything, in short, not a good candidate for perl.

: Well, he does have a programming history. I've had the pleasure of
: maintaining some of his code. 

: Perfect examples of how not to code, and how to break any OO principle 
: you can imagine.


: Abigail
: -- 
: perl -wleprint -eqq-@{[ -eqw\\- -eJust -eanother -ePerl -eHacker -e\\-]}-

-- 
George Reese (borg@imaginary.com)       http://www.imaginary.com/~borg
PGP Key: http://www.imaginary.com/servlet/Finger?user=borg&verbose=yes
   "Keep Ted Turner and his goddamned Crayolas away from my movie."
			    -Orson Welles


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

Date: Tue, 22 Sep 1998 12:53:22 GMT
From: droby@copyright.com
Subject: Re: even/odd numbers
Message-Id: <6u86k2$jk3$1@nnrp1.dejanews.com>

In article <6u7331$c96$1@Venus.mcs.net>,
  les@MCS.COM (Leslie Mikesell) wrote:
> In article <slrn70bop9.8io.sholden@pgrad.cs.usyd.edu.au>,
> Sam Holden <sholden@pgrad.cs.usyd.edu.au> wrote:
> >On 21 Sep 1998 00:20:11 -0500, Leslie Mikesell <les@MCS.COM> wrote:
> >>In article <1dfo978.z9u47r1kmwglfN@roxboro0-058.dyn.interpath.net>,
> >>>
> >>>"modulus" is of course the easiest and most straightforward way of
> >>>finding out, but it's hardly the only (although the most obvious way
> >>>would much simplier if perl had a div command like pascal).
> >>
> >>No, no...
> >> printf "Number $n is %s\n", $n & 1 ? "odd":"even" ;
> >>is much easier and more straightforward, not to mention obvious.
> >
> >Only if you know that numbers are stored in binary. And no what & does which
> >is a lot less straightforward then the % and / solutions. In fact my
> >favourite was Tom Christiansen's $r=$n/2;$r=~/\.5$/... or words to that
> >effect.
>
> The mind boggles at someone writing a computer program without
> knowing that it works in binary or what the most basic binary
> operations are.  Times change, I guess.
>

Oh, but of course we want portability to ternary machines.

--
Don Roby
<droby@copyright.com>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Tue, 22 Sep 1998 13:04:43 GMT
From: Kresimir.Puskaric@siemens.at
Subject: Re: Help! - Perl & win95 IE 4.0. Run perls program from IE.
Message-Id: <1103_906469483@TK32142KP>

> Hi, All!
> Sorry, my english is very bad.
Sorry for my starting problems with news groups.

> 
> How working Perl in Windows 95?

I work every day.

> 
> I make file associate  *.pl  to perl.exe
> From Internet Explorer 4.0 run programm xxxx.pl,
> Starting "Perl.exe xxxx.pl" in new window like msdos-mode,
> and Perl working with  STDIN-STDOUT in this window, Perls environments
> variables are zero.
> May be must use DDE, but I don't know how.
> 
> ---
> P.W.
> 

You need a web-server for Win95. It will set up the environment for your script.
You can find your web-server at www.tucows.com.
I used the following two servers: WebSite (O'Reilly www.ora.com) and Xitami (Imatix www.imatix.com). They are both very good 
and easy to use.

After you install one of them, just check the file "c:\windows\hosts". If it doesn't exist, copy (or rename) the sample file 
"hosts.sam" that is in the same directory.

Now you are ready to use your own web-server, using the URL http://localhost/...





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

Date: Tue, 22 Sep 1998 11:16:26 +0100
From: Andrew MacInnes <a.g.macinnes@rl.ac.uk>
Subject: Re: I need a script writen, can someone help me please
Message-Id: <360778FA.AB844DA9@rl.ac.uk>

Gareth Hall wrote:
> 
> On Sat, 19 Sep 1998 10:42:03 -0500, tadmc@metronet.com (Tad McClellan)
> wrote:
> 
> >Gareth Hall (guruchoc@bigpond.com) wrote:
> >
> >: Can somone write a script for me.
> >
> >
> >   If you state how much the job pays you will likely get
> >   better responses to job offers...
> 
> It was just a freebie, no great brain power in this one, it's about 1k
> when finished, I have 90% of it done, just needs tweaking.

If you post the bits you need "tweaking" then I am sure we'll _help_ you
tweak it, but if there is "no great brain power in this one" then why
not do it yourself?


> I didn't realise this was a pay me to write your script newsgroup,
> obviously I was mistaken, sorry.

Obviously you were mistaken, so I'll put you right.  The group does not
write custom scripts for anyone who needs them, however it will help you
with any problems you may have while _you_ are writing scripts.

Do your self a favour read the FAQ, the Llama and the Camel, write as
much of the script as you can, then ask questions if you are stuck. 
Many people will be delighted to help you out.

If you need a script written you have two choices:
	1) write it
	2) pay someone else to write it

Do not post job adverts or requests for scripts to clpm, it upsets the
old-timers (and the new-timers too).


Hope this help (honest).

-- 
Andrew MacInnes

- RAL, DCI,		     E-mail:A.G.MacInnes@rl.ac.uk -
- R27 - F31		Telephone (direct): (01235)446104 -
- Chilton, Didcot	Telephone (Mobile):  07775 943273 -
- Oxon, OX11 0QX	          http://www.dci.rl.ac.uk -


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

Date: Tue, 22 Sep 1998 09:34:33 -0400
From: kpreid@ibm.net (Kevin Reid)
Subject: Re: JAPH: how does this .sig work?
Message-Id: <1dfq8ok.1grp83m3tpxcN@slip166-72-108-246.ny.us.ibm.net>

Tramm Hudson <tbhudso@panther.cs.sandia.gov> wrote:

> perl -e 'print map{$n=hex $_;/[A-F0-9]/&&((map{$_?"L":" "}(map{$n&$_}
> (map{1<<$_}(reverse (0..3))))),++$l%16?"":"\n")} (split //,
> "2A6E1  249D    5    D   C  0   0   0   1 2   A 842B   5495  140  0   0
>    1    2  A   E 4   3A D4  9D D8   0   0 0   1 A   A 2     4   2 AD  4
>    9    514   0   0  0 1 4  4 C 4   2A489 5   D 2   0 00119 D   C 8 5 2
>    3    5  7  70000  1 1 5  1 4 8   5   5 4   5 4   5     0 0   0 0  11
>    9    9   8 8   7  7 4 6  6 6 0   0   0 01 U1 1   1     4 8   5 5   4
>    5    4   5 0   0  0   0  1   1   1   D  2E5  5357   480   001  "   )'

Wow!

Rather large, though.

Here's something I just wrote:

for(;;$i++){print' 'x(sin($i/5)*30+30),"*\n"}

-- 
  Kevin Reid.      |         Macintosh.
   "I'm me."       |      Think different.


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

Date: 22 Sep 1998 15:46:46 +0200
From: Jonathan Feinberg <jdf@pobox.com>
To: "Dan Bassett" <dan@bns.com>
Subject: Re: multi expression unless statement?
Message-Id: <m3sohkb6pl.fsf@joshua.panix.com>

"Dan Bassett" <dan@bns.com> writes:

> unless ($in{'fname'} & $in{'lname'} & $in{'pass'}) {

You are using the bitwise & operator when you mean to be using the
logical && operator.

-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf


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

Date: 22 Sep 1998 12:48:20 GMT
From: klassa@aur.alcatel.com (John Klassa)
Subject: Re: Perl & Java - differences and uses
Message-Id: <6u86ak$k6f$1@aurwww.aur.alcatel.com>

On Mon, 21 Sep 1998 20:12:10 GMT, George Reese <borg@imaginary.com> wrote:
  > I advise you to go back and take a remedial reading comprehension
  > class.  I have never argued anything of the sort of "Perl is so far
  > beneath Python".  You just made that up.

Really?  Maybe I suffer from an inability to comprehend what I read, too,
but the following would suggest that he didn't just make that up.

Message-ID: <MpFJ1.544$E9.1882388@ptah.visi.com>
Perl has no real use.  If you have to do scripting or text processing, use
Python.  Otherwise, use Java.

Message-ID: <pFRJ1.634$E9.2309187@ptah.visi.com>
One of the measures of a successful language is how easy it is for people
to pick it up and also for how easy it is for those who know the language
to read legacy code.  Perl is notoriously bad on this count.  To compound
its horrid syntax, it also has the single nastiest OO paradigm I have ever
seen in a programming language.

Message-ID: <CLaL1.1514$E9.5234013@ptah.visi.com>
Larry Wall was simply wrong.

Message-ID: <96gL1.1626$E9.5495820@ptah.visi.com>
Perl is just chaos.

-- 
John Klassa / Alcatel Telecom / Raleigh, NC, USA <><


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

Date: Tue, 22 Sep 1998 13:46:31 GMT
From: George Reese <borg@imaginary.com>
Subject: Re: Perl & Java - differences and uses
Message-Id: <XSNN1.1331$Ge.4172799@ptah.visi.com>

In comp.lang.java.programmer John Klassa <klassa@aur.alcatel.com> wrote:
: On Mon, 21 Sep 1998 20:12:10 GMT, George Reese <borg@imaginary.com> wrote:
:   > I advise you to go back and take a remedial reading comprehension
:   > class.  I have never argued anything of the sort of "Perl is so far
:   > beneath Python".  You just made that up.

: Really?  Maybe I suffer from an inability to comprehend what I read, too,
: but the following would suggest that he didn't just make that up.

: Message-ID: <MpFJ1.544$E9.1882388@ptah.visi.com>
: Perl has no real use.  If you have to do scripting or text processing, use
: Python.  Otherwise, use Java.

: Message-ID: <pFRJ1.634$E9.2309187@ptah.visi.com>
: One of the measures of a successful language is how easy it is for people
: to pick it up and also for how easy it is for those who know the language
: to read legacy code.  Perl is notoriously bad on this count.  To compound
: its horrid syntax, it also has the single nastiest OO paradigm I have ever
: seen in a programming language.

: Message-ID: <CLaL1.1514$E9.5234013@ptah.visi.com>
: Larry Wall was simply wrong.

: Message-ID: <96gL1.1626$E9.5495820@ptah.visi.com>
: Perl is just chaos.

You do have a reading comprehension problem.  Especially since you
have taken all of this out of context.  

All of these things actually say different things, none of which are
functional comparisons of perl and python.

"Perl is chaos" is a comment on perl's syntax.  

"Larry Wall was simply wrong" was a response to someone who posted
some quote or another.  This, honestly, was a really stupid quote for
you to post since it says zippo about perl or python.

And the other two basically say that wherever perl can solve a
problem, either python or java (or both) are equally able to solvve
that problem.

Of course, you have left out the parts where I went into that claim
further.  The parts where I say the reason is due to the
maintainability and extensibility of python, not because of some grand
feature set of python.

-- 
George Reese (borg@imaginary.com)       http://www.imaginary.com/~borg
PGP Key: http://www.imaginary.com/servlet/Finger?user=borg&verbose=yes
   "Keep Ted Turner and his goddamned Crayolas away from my movie."
			    -Orson Welles


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

Date: Tue, 22 Sep 1998 13:54:10 GMT
From: George Reese <borg@imaginary.com>
Subject: Re: Perl & Java - differences and uses
Message-Id: <6_NN1.1341$Ge.4172799@ptah.visi.com>

Your wonderfully misinterpret these quotes and you leave out the
Amazon ranking.  I believe it gets 4 out of 5 stars?

First of all, all of the so-called "negative" reviews and "negative"
comments in the positive reviews are about the same thing: The book
focuses more on architecture than writing JDBC code.  I make
absolutely no apologies for that.  JDBC is a simple API with very few
nuances to it.  People simply expect there to be more to it than there
is.

Second of all, the book is about 'Database Programming' in a 3-tier
distributed environment.  As such, every comment on that aspect of the
book is glowing.  And the professional reviews are equally glowing.

Which all gets to the point at hand--the book's positive reviews all
deal with my understanding of architecture and distributed object
systems.  Those are the bits that are most relevant to this discussion
of object-orientation, n'est-ce pas?

In comp.lang.java.programmer Zenin <zenin@bawdycaste.org> wrote:
: George Reese <borg@imaginary.com> wrote:
: 	>snip<
: : If you would like a bit of irony, however, I
: : believe my book was one of O'Reilly's best selling titles at last year's
: : Perl conference.  I believe it was number 3 behind the NT book and the Java
: : in a Nutshell second edition.
: 	>snip<

: 	Hmm, interesting, your Java/JDBC book right?  You'd never have guessed
: 	it from most of the reviews from readers at Amazon:

: 	"I have programmed in Java for sometime, but have not used JDBC.
: 	 This book really didn't help me accomplish that goal."

: 	"The book is more about three tier client/server and RMI than it is
: 	 about fully useful database programming using JDBC and JAVA."

: 	"I found this book hard to follow and the sample code was to big to
: 	 learn from."

: 	Even most of the "good" reviews knock the book:

: 	"Maybe JDBC itself does not have enough interesting content, the
: 	 author spent much effort to explore multiple tier computing model
: 	 and RMI instead."

: 	"To this effect, the book is quite thin. You should not expect this
: 	 book to help you much in JDBC trouble-shooting."

: 	To George's credit, there were a couple other "good" reviews. 
: 	However, the bad comments far outweighed the good.

: 	http://www.amazon.com/exec/obidos/ASIN/1565922700/qid%3D906437853/002-2147147-3309216

: 	Funny, I used to think ORA held much higher standards for there
: 	authors and work... :-/

: -- 
: -Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
: BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
: Berkeley or thereabouts.  Similar in many ways to the prescription-only
: medication called "System V", but infinitely more useful. (Or, at least,
: more fun.)  The full chemical name is "Berkeley Standard Distribution".

-- 
George Reese (borg@imaginary.com)       http://www.imaginary.com/~borg
PGP Key: http://www.imaginary.com/servlet/Finger?user=borg&verbose=yes
   "Keep Ted Turner and his goddamned Crayolas away from my movie."
			    -Orson Welles


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

Date: 22 Sep 1998 16:34:34 +0200
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: problems using "use", HELP!
Message-Id: <is90jc2p39.fsf@godzilla.kiere.ericsson.se>

Kenneth Hunt <kchunt@mail.hac.com> writes:

> > Using perl 4.  It's time to upgrade!
> 
> It's a server at work. You know how that goes...3 years behind on
> everything...

The current version three years ago was 5.002 (or maybe 5.003 was out
by then, I don't quite remember).
-- 
                    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: Tue, 22 Sep 1998 07:23:22 -0700
From: Ben Pavon <ben.pavon@hsc.hac.com>
Subject: Re: Shell-scripts and #! ( big dilemma ) !
Message-Id: <3607B2DA.833FB18E@hsc.hac.com>

Serge Noiraud wrote:

> I have one big dilemma !
>
> I have an environment variable called PREFIX which is in my HOME directory.
> This variable is defined like this :
> $HOME/local/$SYSTEM$VERSION
>
> So I have the following directories :
> $HOME/local/IRIX4/( bin, lib, ... )
> $HOME/local/IRIX5/...
> $HOME/local/IRIX6/...
> $HOME/local/AIX32/...
> $HOME/local/AIX41/...
> $HOME/local/AIX42/...
> $HOME/local/AIX43/...
> ...
>
> My HOME directory is mounted by NFS.
> I choose the good bin directory depending the system I work on.
>
> All work fine ( the PATH is correct ).
>
> The problem is :
> I have shell-scripts with the #! magic number.
> I can't use #!perl even if my PATH is correct.
> I can't use #! $HOME/local/IRIX5/bin because this shellscript won't work on an AIX system.
> I can't use #! $PREFIX/bin/perl
>
> Do you have any Idea ? Is there one solution ?
>
> I don't want to put my local on /usr/local because the systems are
> often broken, reinitialized, ... They are test machines.

Hi Serge,

I recently posted something on this topic. You might want to search
Deja News for 'perl invocation line'. The following is what I use:

#!/bin/sh
#! -*-perl-*-
eval 'exec ${GNULOCAL}/bin/perl${PERLVERSION} -x -S $0 ${1+"$@"}'
    if 0;

The following would work for you:

#!/bin/sh
#! -*-perl-*-
eval 'exec ${PREFIX}/bin/perl -x -S $0 ${1+"$@"}'
    if 0;

--
__END__

------------------------------------------------------------------------
  Ben Pavon 310.364.9827                         ben.pavon@hsc.hac.com
------------------------------------------------------------------------

Benny says "Do it right, do it once!"





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

Date: 22 Sep 1998 07:19:31 -0500
From: Jim Woodgate <jdw@dev.tivoli.com>
Subject: Re: Square Root?
Message-Id: <ob4su01grw.fsf@alder.dev.tivoli.com>



Mark Robinson <plasmoid@riname.com> writes:
> Is there a function that does a square root?  Is it sqrt?

nope, you must use exponents:

perl -e 'print 16 ** (1/2)'

:)


Actually there is a sqrt function also:

perldoc -f sqrt

=item sqrt

Return the square root of EXPR.  If EXPR is omitted, returns square
root of C<$_>.

-- 
Jim Woodgate 
Tivoli Systems
E-Mail: jdw@dev.tivoli.com


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

Date: 22 Sep 1998 08:47:38 -0500
From: Kevin Cutts <cutts@ccrl.mot.com>
Subject: web site retrieval
Message-Id: <6r1zp4gsxx.fsf@ccrl.mot.com>

I'm looking for a perl script that,given a URL, would download the web 
page indicated by the URL and then follow links on that page to
related pages...and download them. The tricky part is to fix the link
references in the original document to point to the local copy of the
file.  

I know that perl can retrive web pages pretty easily. I can even
figure out how to parse them looking for links. The tricky part would
be modifying the web page to work locally. 

TIA

PS. I looked on CPAN, the FAQ, deja news but didn't find anything...or 
found too much. If I missed it, please send a pointer on how to find it!
-- 
Kevin M. Cutts  IL02-2928               Motorola, Inc., CCR&D
Email ckc006 -at- email.mot.com         1301 E. Algonquin Rd.
Work (847) 576-9056                     Schaumburg, IL  60196
--
Lottery:  A tax on people who are bad at math.


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

Date: 22 Sep 1998 16:07:49 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: web site retrieval
Message-Id: <83k92wb5qi.fsf@vcpc.univie.ac.at>

Re: web site retrieval, Kevin <cutts@ccrl.mot.com> said:

Kevin> I'm looking for a perl script that,given a URL, would
Kevin> download the web page indicated by the URL and then
Kevin> follow links on that page to related pages...and
Kevin> download them. The tricky part is to fix the link
Kevin> references in the original document to point to the
Kevin> local copy of the file.

Heresy though it may be, you might be better off using
"wget" if you need a self-contained solution.  Available
from any self-respecting GNU archive near you.

hth
tony
-- 
Tony Curtis, Systems Manager, VCPC,    | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien,  | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds!  | private email:
    Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>


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

Date: 22 Sep 1998 11:39:26 GMT
From: sb@engelschall.com (Steffen Beyer)
Subject: What happened to perl.moderated?
Message-Id: <6u829e$b6n$1@en1.engelschall.com>

I was away from mail and news for 3 months; what happened to the RFV
for comp.lang.perl.moderated?

I can't find anything about it in news.announce.newgroups and I haven't
the time to search DejaNews (sorry!).

Can anybody tell me what happened?

Thanks a lot!

Yours,
-- 
    Steffen Beyer <sb@engelschall.com>
    Free Perl and C Software for Download: www.engelschall.com/u/sb/download/


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

Date: 22 Sep 1998 11:03:04 GMT
From: sb@engelschall.com (Steffen Beyer)
Subject: Re: where is Date::Parse (CPAN.pm)?
Message-Id: <6u8058$a8s$1@en1.engelschall.com>

Russ Allbery <rra@stanford.edu> wrote:

> Honza Pazdziora <adelton@fi.muni.cz> writes:
>> On 20 Sep 1998 12:38:36 -0700, Russ Allbery <rra@stanford.edu> wrote:

>>> Nothing's going to work perfectly with everything, and in fact
>>> nothing's likely to work as well across all Perl modules as CPAN.pm.
>>> However, CPAN.pm fails miserably for anything that's *not* a Perl
>>> module, and I'm

>> But it's not CPAN.pm's fault, it's a problem with CPAN itself. The
>> non-module things are not indexed, and you cannot hope to solve the
>> problem before you have the primary data you can build on, isn't that
>> true?

> Yes, but I'm making an even more general point than that.  I also have to
> manage an installation of emacs.  And fileutils.  And vim.  And X.
> And....  CPAN.pm is great for Perl modules, but I need a general solution
> to the general problem, not individual packaging structures for each
> little piece.

There's a new Perl Resource Kit from the german section of O'Reilly coming
soon ("Programmieren mit Perl-Modulen" = "Programming with Perl Modules")
which will include a new tool called "Build'n'Play" which offers that.

You can install Perl (including all the modules you like) and other
distributions (like Gimp, ImageMagick, and soon gcc and more) with it
using all the flexibility and computational power of Perl.

(Hey there! How does it install Perl using Perl scripts?! Well, it does
so by bootstrapping with miniperl first...)

Or write your own installation scripts for your preferred tools.

Moreover, these scripts will be able to automatically resume at the exact
location where they aborted when an error (e.g. compiler error) occurred.

And finally, you will be able to install to a software installation
hierarchy which allows grouping of your installed software packages
into categories (subdirectories) as well as guaranteed residue-free
de-installation.

No more trampling over one another in /usr/local/bin anymore, no more
uncontrolled copying of files over your whole file system when doing
"make install".

(Did you ever try to de-install a package that was installed to /usr/local?
Did you ever try to figure out which files belonged to that package and
where they were located?)

If you want to check this tool out, mail me and I give you the password
to the betatest download area,

    http://www.engelschall.com/u/sb/download/bnp/

> (And before someone mentions it, looked at RPM, tried it, it's not
> sufficient, will attempt to write up the reasons why it's not sufficient
> for the benefit of the RPM folks at some point and haven't had the time.)

Hope this helps! :-)

Yours,
-- 
    Steffen Beyer <sb@engelschall.com>
    Free Perl and C Software for Download: www.engelschall.com/u/sb/download/


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

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 3784
**************************************

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