[15993] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3405 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jun 17 18:10:28 2000

Date: Sat, 17 Jun 2000 15:10:16 -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: <961279815-v9-i3405@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Sat, 17 Jun 2000     Volume: 9 Number: 3405

Today's topics:
    Re: Crazy enough that it might just work... <henry@penninkilampi.net>
    Re: Crazy enough that it might just work... (Abigail)
    Re: Crazy enough that it might just work... <gellyfish@gellyfish.com>
    Re: Crazy enough that it might just work... <henry@penninkilampi.net>
    Re: Crazy enough that it might just work... (Andrew Johnson)
    Re: Crazy enough that it might just work... (David Bell)
    Re: Crazy enough that it might just work... (John Stanley)
    Re: Crazy enough that it might just work... (John Stanley)
    Re: Crazy enough that it might just work... (John Stanley)
        Esplit.pm - split strings at arbitrary delimiters <h.camp@scm.de>
        filesystem-like data structure <itz@speakeasy.org>
        grepmail 4.41 released <newspost@coppit.org>
        hoe to know which modules installed <cplee@bigfoot.com>
    Re: hoe to know which modules installed (Marcel Grunauer)
    Re: hoe to know which modules installed <rootbeer@redcat.com>
    Re: How do I print out the result of a @diff ??? please <iltzu@sci.invalid>
        I need help to get headlines on my site <phuket@phuket-guide.com>
    Re: I need help to get headlines on my site <tina@streetmail.com>
        Illegal Characters <preble@ipass.net>
    Re: Illegal Characters <rootbeer@redcat.com>
        Mail::Bulkmail..request for beta testers <jim3@psynet.net>
        Perl code for unzip <Luc-Etienne.Brachotte@wanadoo.fr>
    Re: Perl code for unzip <randy@theory.uwinnipeg.ca>
        perlservices.com <NoSPAM@NoSPAM.net>
    Re: perlservices.com (Marcel Grunauer)
        running perl daemons from a shell script a4kquattro@my-deja.com
    Re: Variable variable names, was Re: now this is strang <flavell@mail.cern.ch>
    Re: Writing line of death to log <c.hintze@gmx.net>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Sun, 18 Jun 2000 03:43:53 +0930
From: Henry <henry@penninkilampi.net>
Subject: Re: Crazy enough that it might just work...
Message-Id: <henry-830DDB.03435318062000@news.metropolis.net.au>

In article <8ifng5$cc7$1@orpheus.gellyfish.com>, Jonathan Stowe 
<gellyfish@gellyfish.com> wrote:

> Its not a matter of who is posting its a matter of what is
> being posted.  A first time poster might well have a most excellent
> contribution to make in the form a question or indeed some informative
> article.

Anyone got any data points on this?

How often (if at all) do posters, who have _never_ posted here before, 
make their debut with a question that can make a guru sit back for a 
moment and force them to actually _think_ rather than merely rehash the 
documentation?

I recognise that there there are lurkers out there who have been around 
for a while, who are proficient, and who can delurk with a worthy 
question, but the statistical probability of such an event is not high.

1-in-100?

1-in-1000?

Henry.


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

Date: 17 Jun 2000 14:33:18 EDT
From: abigail@delanet.com (Abigail)
Subject: Re: Crazy enough that it might just work...
Message-Id: <slrn8kni5l.mlf.abigail@alexandra.delanet.com>

Henry (henry@penninkilampi.net) wrote on MMCDLXXXII September MCMXCIII in
<URL:news:henry-830DDB.03435318062000@news.metropolis.net.au>:
?? In article <8ifng5$cc7$1@orpheus.gellyfish.com>, Jonathan Stowe 
?? <gellyfish@gellyfish.com> wrote:
?? 
?? > Its not a matter of who is posting its a matter of what is
?? > being posted.  A first time poster might well have a most excellent
?? > contribution to make in the form a question or indeed some informative
?? > article.
?? 
?? Anyone got any data points on this?
?? 
?? How often (if at all) do posters, who have _never_ posted here before, 
?? make their debut with a question that can make a guru sit back for a 
?? moment and force them to actually _think_ rather than merely rehash the 
?? documentation?
?? 
?? I recognise that there there are lurkers out there who have been around 
?? for a while, who are proficient, and who can delurk with a worthy 
?? question, but the statistical probability of such an event is not high.
?? 
?? 1-in-100?
?? 
?? 1-in-1000?


All the more a reason to be careful not to lose those few by having 
their posts block for 8 days. Or do you really think a clueful person
would come back after that?


Abigail
-- 
sub f{sprintf$_[0],$_[1],$_[2]}print f('%c%s',74,f('%c%s',117,f('%c%s',115,f(
'%c%s',116,f('%c%s',32,f('%c%s',97,f('%c%s',0x6e,f('%c%s',111,f('%c%s',116,f(
'%c%s',104,f('%c%s',0x65,f('%c%s',114,f('%c%s',32,f('%c%s',80,f('%c%s',101,f(
'%c%s',114,f('%c%s',0x6c,f('%c%s',32,f('%c%s',0x48,f('%c%s',97,f('%c%s',99,f(
'%c%s',107,f('%c%s',101,f('%c%s',114,f('%c%s',10,)))))))))))))))))))))))))


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

Date: 17 Jun 2000 20:12:10 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Crazy enough that it might just work...
Message-Id: <8igiia$5u8$1@orpheus.gellyfish.com>

On Sat, 17 Jun 2000 10:22:29 -0400 Tad McClellan wrote:
> 
> He likes to be the devil's advocate.
> 
> If you watch him long enough, you can find him arguing on
> both sides of an issue.
> 

And likes to put his point robustly - there is a reason why John Stanley
is not in my killfile and the OP has achieved this perhaps six times under
different e-mail addresses.

/J\
-- 
** This space reserved for venue sponsor for yapc::Europe **
              <http://www.yapc.org/Europe/> 


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

Date: Sun, 18 Jun 2000 04:25:06 +0930
From: Henry <henry@penninkilampi.net>
Subject: Re: Crazy enough that it might just work...
Message-Id: <henry-F07D95.04250618062000@news.metropolis.net.au>

In article <slrn8kni5l.mlf.abigail@alexandra.delanet.com>, 
abigail@delanet.com wrote:

>> I recognise that there there are lurkers out there who have been 
>> around for a while, who are proficient, and who can delurk with a
>> worthy question, but the statistical probability of such an event
>> is not high.
>>
>> 1-in-100?
>> 
>> 1-in-1000?
> 
> All the more a reason to be careful not to lose those few by having 
> their posts block for 8 days. Or do you really think a clueful person
> would come back after that?

I think a clueful person, who is also somewhat considerate and patient, 
would come back - yes.  Such (additional) qualities would then be a 
valuable addition to the culture of this place.

Henry.


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

Date: Sat, 17 Jun 2000 19:11:46 GMT
From: andrew-johnson@home.com (Andrew Johnson)
Subject: Re: Crazy enough that it might just work...
Message-Id: <S3Q25.677$061.14734@news1.rdc1.mb.home.com>

In article <henry-F07D95.04250618062000@news.metropolis.net.au>,
 Henry <henry@penninkilampi.net> wrote:
> In article <slrn8kni5l.mlf.abigail@alexandra.delanet.com>, 
> abigail@delanet.com wrote:
> 
> >> I recognise that there there are lurkers out there who have been 
> >> around for a while, who are proficient, and who can delurk with a
> >> worthy question, but the statistical probability of such an event
> >> is not high.
> >>
> >> 1-in-100?
> >> 
> >> 1-in-1000?
> > 
> > All the more a reason to be careful not to lose those few by having 
> > their posts block for 8 days. Or do you really think a clueful person
> > would come back after that?
> 
> I think a clueful person, who is also somewhat considerate and patient, 
> would come back - yes.  Such (additional) qualities would then be a 
> valuable addition to the culture of this place.

Often, the clueful person doesn't have a question but an answer --
and how likely is it that they will post their answer knowing that
it will be so delayed as to very likely only serve to bring back a
thread that worked itself out several days ago.

It was mid 96 when I first starting lurking in clpm, and late 96
before I ever chose to post something (a reply to a post). Had there
been an 8 day delay I probably would have decided not to post for
that exact reason. And, if I had decided to post, I'd have been back
in the same boat each time I subsequently changed email addresses
(I've had 3 since then).

I do not see how your proposed policy really helps the group out at
all. Newcomers who don't understand usenet and don't lurk will still
post, and their posts will still clutter this group (after an 8 day
delay). The only people your policy will really impact is newcomers
who have lurked for a while and now have something useful to
contribute in the way of answers to questions but won't bother
because they know their post will not arrive in a timely fashion.

regards,
andrew

-- 
Andrew L. Johnson   http://members.home.net/perl-epwp/
      They're not soaking, they're rusting!
          -- my wife on my dishwashing habits


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

Date: 17 Jun 2000 20:27:40 GMT
From: db7654321@aol.comspamsux (David Bell)
Subject: Re: Crazy enough that it might just work...
Message-Id: <20000617162740.02983.00000434@ng-ch1.aol.com>

I couldn't resist replying to this one.  :)  You have a very interesting
argument here, and very true!  But, what about the hybrid parasites?  ...Like
me: I will post a question to a newsgroup if I can't find my answer on the net,
or if I'm new to the subject and don't know where to find informative websites.
 Once found, I will use the site as first priority, and if my question is not
answered, I'll post.  So, I guess I just start as a parasite, then start to
contribute more once I gain knowledge.  As for a delay, I strongly disagree.  I
think if newbies knew about great sites like: http://www.perlfaq.com/ they'd
prefer to find their answers there.  …That might just be from my own
experience though.

-------------------------
David Bell - Otherwise known as DB7654321

Remember to remove nospam, notrash or anything odd looking from my email
address. :)


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

Date: 17 Jun 2000 21:20:35 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Crazy enough that it might just work...
Message-Id: <8igq33$on3$1@news.NERO.NET>

In article <henry-DE3512.20253217062000@news.metropolis.net.au>,
Henry  <henry@penninkilampi.net> wrote:
>> I'm sorry, I meant for you to think about what you were saying before
>> whipping off another silly answer.
>
>Are you _always_ such a facetious prick, or is this attitude something 
>you've been saving up just for me?  

In other words, you have no idea how news works and no intention of
learning before you propose a system that cannot possibly work with this
newsgroup. You will gladly keep spouting nonsense about scripts to
delay posting articles even though it simply is not possible for this
group.

>> Where is this "script",
>
>It's stored on a hard drive, John, and because this is the Internet, 
>John, it doesn't matter where it is, John.  Duh.

Yes, it does matter where it is, because you must somehow magically get
all articles to pass through the system it is on before they are posted.
Since that does not happen in this group, it doesn't matter where the
script is, it will have no effect on anything.

>> How do we make sure that all articles posted go to that script
>> and not to the group like they normally do?
>
>YOU read the FAQs in news.groups.questions, and then _you_ ask a more 
>intelligent question.

In other words, you don't know. No, actually, you know that it cannot be
done in this group, so you act like you know and insult the person
pointing out your ignorance.

>> Who mandates that they cannot be posted?
>
>Read the original article, and my response to your previous post, 
>_again_ - you're obviously having problems with sentences containing 
>words with more than one syllable.

I understand complex sentences enough to know you did not answer the
question I asked.

>> Who prohibits other people from running a bot with a different set
>> of rules? 
>
>They can run all the bots they want, but since none of the posts route 
>via unofficial bots, they will have no effect.  READ THE FAQs!

Since none of the posts route via ANY bot, your bot will have as little
effect as the unofficial ones you don't care about.

>You've _got_ to be kidding?

No. 

>Look, John, if you didn't like the idea, then why not just say so, maybe 
>state a couple of reasons, and then ignore the rest of the thread?

You posted this stupid idea, which implies you have a may of making it
work. If you cannot answer the question about how it is going to work
here, then don't complain when people shoot your idea down.

>But noooo, you immediately accuse me of being a troll, and imply that I 

No, I said that you needed to learn the meaning of a word. 

>did "post an incredibly stupid or moronic idea to a newsgroup in the 
>hopes of wasting everyone's time responding with why it is so stupid or 
>moronic."

Well, it is stupid, you don't have any way of implementing it, and you
cannot answer simple questions about it without flaming. You're wasting
our time.

>If you actually bothered to _read_ it, you would have discovered that 
>the _whole_point_ of my idea was to protect gurus from parasites, 

Yes, I know your point. You have yet to describe your means of doing
this. 

>this place.  It was a serious proposal, logically constructed, with 
>assumptions explained, and it took _hours_ to write.  Are these the 

And hours of asking you how you thought it was going to be implemented.
It's all well and good to come up with a better idea for running this
group, but if you can't actually do it, why bother?

>The newbies 
>would only be affected if their first question happaned to be out of the 
>blue - 

Newbies will not be affected at all. That's the point. Their articles
will not go through your magic bot until after they are posted. 

>and they are in the minority.  Parasites would hate it, but, 

As would anyone who understands how this newsgroup works.

>What I _did_ expect was that the responses be civil, intelligent, and 
>constructive.

And I expected you to think about the answers to the questions I asked
and realize that you cannot achieve what you want here. You've got a bot
that all articles are supposed to pass through. HOW do you get them to
do that? Answer: you cannot. If you cannt get the articles through your
bot, why keep yapping about it?

>It is a shame your's did not live up to the standard set by your peers.

Goodbye, trool.



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

Date: 17 Jun 2000 21:29:24 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Crazy enough that it might just work...
Message-Id: <8igqjk$oro$1@news.NERO.NET>

In article <henry-203116.03131818062000@news.metropolis.net.au>,
Henry  <henry@penninkilampi.net> wrote:
>Seemed clear to me that he didn't know how the technical aspects work.  

Ha ha ha haaa. I'm not the one expecting all articles posted to this
group to somehow pass through your magic bot before they get posted. 

But I'm the one who doesn't know the technical aspects of news.

You are a troll.

>One (authenticated) control post can change all that.  Trivial.

First of all, there is a lot more to changing this group to moderated
than just one "control post". You first need the support of the users,
which you clearly do not have and it is certain you will never get. Next
you must pass the vote. It will never happen. Third, you need to get all
the sites to convert the group to moderated, which is one of those
technical details that you don't seem to understand. It won't happen.
There are still sites with comp.lang.perl, for God's sake.

No, your plan has no way of being implemented, and your continued
yammering about it is a waste of time.

>> Making clp.misc a moderated newsgroup has not a prayer of passing
>> a vote.
>
>Hmmm...  Most people associate the word "moderated" with "censored".  

It doesn't matter. It will not pass. 

>> I expect the point is to have discussion about things that would
>> otherwise not even be discussed.
>
>I got the impression that he was ignoring the content of the previous 
>posts, and repeatedly asking the same bloody question over and over 
>again using different words just to piss me off and get a rise.

If explaining how you get the articles from an unmoderated group to be
passed through your bot before they get posted pisses you off, then you
are in no position to be a group proponent. 

>I'll have to say one thing, though:

You have to say many things, none of which will work here.

>PPS:  For the pedants out there who do not consider "trolling" to be a 
>proper word, well, trolling is what trolls do, and unless you've got a 

You know it very well. 




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

Date: 17 Jun 2000 21:31:31 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Crazy enough that it might just work...
Message-Id: <8igqnj$os2$1@news.NERO.NET>

In article <8ifnlb$ctb$1@orpheus.gellyfish.com>,
Jonathan Stowe  <gellyfish@gellyfish.com> wrote:
>On Thu, 15 Jun 2000 16:34:24 -0400 Drew Simonis wrote:
>> I think you are assuming that during that 8 day wait that the parasite 
>> will go out and learn.  
>
>I think they will just post the same question until the message comes
>up and they get an answer.

And I think that every time such a post appears Henry wil be jumping up
and down whining that the newbie didn't send his article to Henry to be
approved before posting it.



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

Date: 13 Jun 2000 17:06:25 GMT
From: "H. Camphausen" <h.camp@scm.de>
Subject: Esplit.pm - split strings at arbitrary delimiters
Message-Id: <vsP25.1114$v7.71621@news-west.usenetserver.com>

Hi,

I just uploaded a new Perl module to CPAN:
	
      ESplit.pm 

Available at 
    - CPAN (search modules for ESplit)
    - http://www.creagen.de/download.htm
Documentation (not complete yet) is available at:
      http://www.creagen.de/mo_docs/e_split.htm


ESplit.pm provides one function, e_split(), to split (sic!) scalar values 
(AKA strings) at arbitrary characters/strings (may be given as regex).
Usefull to deal with C(?)SV data.

- Delimiters contained in quoted strings will be ignored, as well as \- 
  escaped delimiters.
- Delimiters given in () will be returned as n + 1. elements in the
  resulting array (like split()).
- One can tell e_split() to return only the first n elements - or the
  last n elements.
	  
ESplit is written in plain Perl. No OO interface.

e_split is 2-5 times faster than Text::ParseWords::parse_line.
e_split deals with quoted strings (fields) in a more reasonable way
  (well, IMHO :-)) than parse_line.
e_split deals correctly with mixed qoutes (e.g. double quotes at start of
  a field, a single one at the end).
	
Any comments and suggestions are highly appreciated.


Cheers, Hartmut


-- 
CREAGEN Computerkram     Fon: 06424/923826
Hartmut Camphausen       Fax: 06424/923827
Kirchstraße 8            E-Mail: h.camp@creagen.de
35043 Marburg            WWW: http://www.creagen.de






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

Date: 17 Jun 2000 14:40:31 -0700
From: Ian Zimmerman <itz@speakeasy.org>
Subject: filesystem-like data structure
Message-Id: <86n1kkhtps.fsf@kronstadt.speakeasy.org>


Hi, I hope to implement something like the interactive mode (-i) of
restore(1) or amrecover(8), but with tar files.  That is, I'd like a
command loop wherein the user can change or list directories in a
"virtual filesystem" and add filenames (both absolute and
cwd-relative) to an extraction list.  The virtual filesystem shall be
constructed from the listing of the tar file (essentially the output
of "tar tf foo").

My question is, how best to represent the filesystem structure?
Leaving it flat just like the tar listing means unacceptable search
times, but OTOH something like a recursively nested array (containing
references to subdirectory contents) might take too much store, I am
afraid (the typical tar listing I have in mind is between 1 and 5MB),
and it wouldn't be trivial to construct, either. (Basically I'd need
to rewrite the kernel namei() routine in perl...)

Thanks for your ideas,

-- 
Ian Zimmerman, Oakland, California, U.S.A.
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.


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

Date: Wed, 14 Jun 2000 14:33:03 -0400
From: David Coppit <newspost@coppit.org>
Subject: grepmail 4.41 released
Message-Id: <lsP25.1112$v7.71813@news-west.usenetserver.com>

Description:
- grepmail is a Perl program that searches a normal or compressed mailbox
  (gzip, bzip2, or tzip) for a given regular expression and returns those
  emails that match the query. It also supports searches constrained by date
  and size.

Download:
- You can now download grepmail 4.41 from CPAN:
  http://www.cpan.org/authors/id/D/DC/DCOPPIT/grepmail-4.41.tar.gz
- Until the file propagates to the mirrors, you can use the following URL:
  http://download.sourceforge.net/grepmail/grepmail-4.41.tar.gz

Changes:
- Support for Gnus-style mail files added
- Test mail files tweaked to make the test cases work better across all time
  zones.
- Added check for unparsable dates in email headers.
- Fixed a Perl warning raised when date parsing fails.
- Added instructions for getting the necessary modules to README.

A complete change log is at:
- ftp://grepmail.sourceforge.net/pub/grepmail/CHANGES

Thanks,
David

_________________________________________________________________________
David Coppit - Graduate Student        david@coppit.org      
The University of Virginia             http://coppit.org/
    "Yes," said Piglet, "Rabbit has Brain." There was a long silence.
"I suppose," said Pooh, "that that's why he never understands anything."







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

Date: Sat, 17 Jun 2000 12:35:55 -0700
From: ChungpingLi <cplee@bigfoot.com>
Subject: hoe to know which modules installed
Message-Id: <394BD31B.8C46760F@bigfoot.com>

Firends
How to find out which modules installed in perl
Please tell me
Andrea




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

Date: 17 Jun 2000 20:20:10 GMT
From: marcel@codewerk.com (Marcel Grunauer)
Subject: Re: hoe to know which modules installed
Message-Id: <slrn8knn91.3gk.marcel@gandalf.local>

On Sat, 17 Jun 2000 12:35:55 -0700, ChungpingLi <cplee@bigfoot.com> wrote:

>How to find out which modules installed in perl

Basically, you'll want to search the paths in the @INC variable for files
ending in .pm . Of course, you might have more modules installed in a
private library directory; if so, you need to include those in @INC as
well (just use push() or unshift() ).

For use on the command-line, there is the pminst program,
part of pmtools written by Tom Christiansen. Download it from
http://doriath.perl.com/misc/pmtools-1.00.tar.gz

Or, for use over CGI, you could use the following program, adapted by
yours truly from the original version by Dave Cross, which will tell
you all sorts of things about the perl installation on that site:



#!/usr/bin/perl -w

use strict;
use CGI qw/:standard/;
use File::Find;

print header,
	start_html,
	h1("Perl Environment: $ENV{SERVER_NAME}"),
	p("Perl Version: $]"),
	p("CGI.pm Version: $CGI::VERSION"),
	p("Library Path (\@INC):"),
	ul(li([@INC])),
	p('Modules:');

foreach my $dir (@INC) {
	my @mods;
	find(sub { push @mods, $File::Find::name if /\.pm$/ }, $dir);
	print ul(li("$dir"), ul(li([sort @mods])));
}
__END__


-- 
Marcel
sub AUTOLOAD{($_=$AUTOLOAD)=~s;^.*::;;;y;_; ;;print} Just_Another_Perl_Hacker();


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

Date: Sat, 17 Jun 2000 13:20:40 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: hoe to know which modules installed
Message-Id: <Pine.GSO.4.10.10006171319360.21108-100000@user2.teleport.com>

On Sat, 17 Jun 2000, ChungpingLi wrote:

> How to find out which modules installed in perl

    http://www.perlfaq.com/faqs/id/205

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 17 Jun 2000 21:37:25 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: How do I print out the result of a @diff ??? please. Small sample code
Message-Id: <961277732.2355@itz.pp.sci.fi>

In article <vlm25.2$zQ4.737@nsw.nnrp.telstra.net>, Robert Chalmers wrote:
>I wonder if anyone knows how to print out the result of this diff .
>I have two simple text files I'm testing  it against, which can contain
>lines of anything.

Have you looked at the diff.pl and cdiff.pl programs included in the
Algorithm::Diff distribution?

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla and its pseudonyms - do not feed the troll.



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

Date: Sat, 17 Jun 2000 23:03:51 +0200
From: Johan =?iso-8859-1?Q?B=FCnger?= <phuket@phuket-guide.com>
Subject: I need help to get headlines on my site
Message-Id: <394BE7B7.32B07E92@phuket-guide.com>

Hi
I have been trying to get hold on a simple way to include headlines that
is updated every day. I would like to collect the information from a
site:

http://www.phuketgazette.net/feedme/index.asp

Then collect the data only and format it so I can use it on my first
page. Now I have no idea about this and how to do it. If any one with a
good hart out their would like to help out I would be most happy.

The information from the link above look like this:

<html>
<body>

Shortage of tour guides causes
problems|http://www.phuketgazette.com/news/index.asp?id=943<br>15,000
sign Luang Por Cham
petition|http://www.phuketgazette.com/news/index.asp?id=942<br>Robbers
stab German resident to
death|http://www.phuketgazette.com/news/index.asp?id=941<br>Teens in
‘Romeo and Juliet’ double
suicide|http://www.phuketgazette.com/news/index.asp?id=940<br>THAI to
launch new Oz-Phuket
service|http://www.phuketgazette.com/news/index.asp?id=939<br>Sweden
pledges help for Cyber City
plan|http://www.phuketgazette.com/news/index.asp?id=938<br>Angel Air
suspends
services|http://www.phuketgazette.com/news/index.asp?id=937<br>General
coy about new job as
minister|http://www.phuketgazette.com/news/index.asp?id=936<br>Pattana
Kathu Party wins landslide
victory|http://www.phuketgazette.com/news/index.asp?id=935<br>
</body>
</html>

I think that the forst think is to remov the html, then list it up and
make a small Perl script that I could call with SSI, I have tested
several scripts and can not get it working. If you like you could at the
same time explain the steps in the script, I hope learning some at the
same time. I have tested doing this last 3-4 days no succes yet.

My "playsite" this is where I play around to test every thing before I
publish it.

http://phuketadult.com

My real site is:

http://phuket-guide.com

Sincerely
Johan



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

Date: 17 Jun 2000 21:32:35 GMT
From: Tina Mueller <tina@streetmail.com>
Subject: Re: I need help to get headlines on my site
Message-Id: <8igqpi$4rvsv$2@fu-berlin.de>

hi,

Johan B=FCnger <phuket@phuket-guide.com> wrote:
> I have been trying to get hold on a simple way to include headlines that
> is updated every day. I would like to collect the information from a
> site:

> http://www.phuketgazette.net/feedme/index.asp
> [...]

what was wrong with the answers of tad and dave to your posting
14 hours ago?

tina

--=20
http://tinita.de    \  enter__| |__the___ _ _ ___
tina's moviedatabase \     / _` / _ \/ _ \ '_(_-< of
search & add comments \    \ _,_\ __/\ __/_| /__/ perception


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

Date: Sat, 17 Jun 2000 16:15:00 -0400
From: "E. Preble" <preble@ipass.net>
Subject: Illegal Characters
Message-Id: <k0R25.72$dg2.787@saturn.ipass.net>

I've recently moved some perl code from one server to
another. Everything works, except for the codes where I try
to "require" another file, like a cookie library. Here's the
error I get:
------
Illegal character \015 (carriage return) at cookie.lib line
31.
(Maybe you didn't strip carriage returns after a network
transfer?)
------

Line 31, is simply the first line of actual code in the
library, and reads:
$Cookie_Path = '';

What is causing this error?  I've never had to strip
carriage returns before, and I'm not even sure how I would
do it if I had to. If I comment out the offending line, the
error simply moves to the next line of code. Is there a
problem with the method of using this library file itself?
Do some perl compilers require a certain name, or format, of
the library file that I'm not aware of?

Thanks ahead.

Edward Preble



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

Date: Sat, 17 Jun 2000 13:23:29 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Illegal Characters
Message-Id: <Pine.GSO.4.10.10006171321430.21108-100000@user2.teleport.com>

On Sat, 17 Jun 2000, E. Preble wrote:

> Illegal character \015 (carriage return) at cookie.lib line
> 31.
> (Maybe you didn't strip carriage returns after a network
> transfer?)

Have you seen what the perldiag manpage says about this? But you should
probably have used text (or ASCII) mode to transfer the files, rather than
whatever you did use. Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Sat, 17 Jun 2000 17:10:57 GMT
From: Jim Thomason <jim3@psynet.net>
Subject: Mail::Bulkmail..request for beta testers
Message-Id: <NrP25.1108$v7.71585@news-west.usenetserver.com>

The wait is over! Mail::Bulkmail 2.00 FC1 is finally here.
Mail::Bulkmail is a ground-up total re-write of Mail::Bulkmail, 
improving stability, functionality, adding new features, all sorts of 
cool stuff.

Main points:
 
 *Should behave _perfectly_ with use strict and -w now. Please let me 
know if anything slipped by. 
 *Allows sending via the envelope. This should give you somewhere 
between a 400-900% speed increase. 
 *Dynamic messaging allows you to build individual messages for 
individual users on the fly. 
 *Variable input sources allows you to read in your list directly from 
any source if you'd like, not just flat files any more. 
 *More detailed and robust error checking and reporting.

 But since this is a massive upgrade to the module, I'm a little bit 
paranoid and would like some more beta testing before I plunk it onto 
CPAN. Everything *should* be fine and dandy, but I haven't gotten the 
chance to hammer on it as much as I'd like to, so I'm hoping some nice 
people out in perl land can help me do it.

You can grab the release at http://members.home.net/jimandkoka/perl/

Please snag it, play around with it, let me know what you think, and 
especially any problems that you encounter. If you're using 
Mail::Bulkmail 1.x, it'll take a little tweaking to get 2.00 to work 
with your code, but not so much as to be overly tough. Do *not* get rid 
of v1.x yet, if you have it, since this is pre-release software and I 
don't completely know how it's going to behave. And while you should be 
fine using this for any production email lists, just be aware that there 
may still be a few bugs left, so be careful.

And of course, I will be happy to list any beta testers that let me know 
their identity in the credits of the module. :)

Thanks,
-Jim Thomason...






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

Date: Sat, 17 Jun 2000 21:55:52 +0200
From: Luc-Etienne Brachotte <Luc-Etienne.Brachotte@wanadoo.fr>
Subject: Perl code for unzip
Message-Id: <394BD7C8.66AE4F49@wanadoo.fr>

Hi,

I'm looking for Perl code/module for unziping (also for zipping) files,
mainly to a Perl scalar variable. unzipping to a file will also do.

Tx

LEB




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

Date: Sat, 17 Jun 2000 15:01:42 -0500
From: "Randy Kobes" <randy@theory.uwinnipeg.ca>
Subject: Re: Perl code for unzip
Message-Id: <8iglj8$kte$1@canopus.cc.umanitoba.ca>


Luc-Etienne Brachotte <Luc-Etienne.Brachotte@wanadoo.fr>
    wrote in message news:394BD7C8.66AE4F49@wanadoo.fr...

> I'm looking for Perl code/module for unziping (also for zipping) files,
> mainly to a Perl scalar variable. unzipping to a file will also do.

Sounds like you want the Archive::Zip module - see, for example,
http://theoryx5.uwinnipeg.ca/CPAN/data/Archive-Zip/Archive/Zip.html
for documentation on its use and how to get it.

best regards,
randy kobes





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

Date: Sat, 17 Jun 2000 14:48:36 -0500
From: "Please don't SPAM me" <NoSPAM@NoSPAM.net>
Subject: perlservices.com
Message-Id: <394bd645$0$94748$726baab@news.execpc.com>

Just wondering if there would be any interest in anyone buying the domain
perlservices.com from me.




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

Date: 17 Jun 2000 20:25:09 GMT
From: marcel@codewerk.com (Marcel Grunauer)
Subject: Re: perlservices.com
Message-Id: <slrn8knndu.3gk.marcel@gandalf.local>

On Sat, 17 Jun 2000 14:48:36 -0500, Please don't SPAM me
<NoSPAM@NoSPAM.net> wrote:

>Just wondering if there would be any interest in anyone buying the domain
>perlservices.com from me.

There's a lot of opportunities,
if you know when to take them you know,
there's a lot of opportunities
if there aren't you can make them
make or break them

let's make lots of money...

	-- Pet Shop Boys

-- 
Marcel
sub AUTOLOAD{($_=$AUTOLOAD)=~s;^.*::;;;y;_; ;;print} Just_Another_Perl_Hacker();


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

Date: Sat, 17 Jun 2000 18:18:17 GMT
From: a4kquattro@my-deja.com
Subject: running perl daemons from a shell script
Message-Id: <8igfda$d9q$1@nnrp2.deja.com>

Hello,

I've been trying to control a simple perl daemon
from a shell script in /etc/rc.d/init.d under RH
6.0.  The trouble is that when the daemon starts
using "daemon /path_to_file/test_daemon.pl",the
perl code executes just fine and shows up in the
top screen as being named test_daemon.pl, but
when I try to end the process with "killproc
test_daemon.pl", it fails.. and the reason it
fails is because the system believes the name of
the process is perl and NOT test_daemon.pl since
running "killproc perl" works just fine.  I
cannot do this however since it is unreasonable
to believe that only that one perl process will
be running at any one time.  How do I ensure that
when I execute a program without explicitly
calling "perl test_daemon.pl"
(i.e. "./test_daemon.pl"), that the process will
be named test_daemon.pl and NOT "perl" on the
system?


Thanks!


-Marc-

#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
#Marc Swanson            |      \|||/      #
#MSwanson Consulting     |      /o o\      #
#Phone:  (603)868-1721   |-ooo----O----ooo-#
#Fax:    (603)868-1730   |  Solutions in:  #
#marcswanson@mediaone.net|  'PHP    'Perl  #
#                        |  'SQL    'C++   #
#                        |  'HTML   'Sh/Csh#
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#


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


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

Date: Sat, 17 Jun 2000 19:59:53 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Variable variable names, was Re: now this is strange...
Message-Id: <Pine.GHP.4.21.0006171954330.21898-100000@hpplus03.cern.ch>

On Sat, 17 Jun 2000, Abe Timmerman wrote:

> Did you try (something like):
> 
> 	D:\>grep -ni "symbolic" d:/usr/lib/Pod/perlfaq*.pod

Would we expect a newbie to do that?  Shirly not...

> There is a question in perlfaq7:
> 	"How can I use a variable as a variable name?"

I tried perldoc -q variable.  It brought some answers, but not that
one.  Aha, so it's new at 5.6.0 and I was querying against the
previous version.  Sorry, it looks as if this issue has been already
sorted out.  fx: Twack! for not checking before posting.

all the best.




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

Date: Sat, 17 Jun 2000 20:13:34 GMT
From: Clemens Hintze <c.hintze@gmx.net>
Subject: Re: Writing line of death to log
Message-Id: <m37lboqd5d.fsf@qiao.localnet>

>>>>> "Dave" == Dave McIntyre <dem@achilles.net> writes:

    Dave> O Ye of Perl, The user wants a log file entry everytime the
    Dave> script dies for any reason.

    Dave> I'm doing this:

    Dave> open(FILE, "file.txt") or print LOG scalar(localtime) . "
    Dave> Line: Can't open $file: $!\n" and die;

Try this:

   BEGIN {
     open(STDERR, ">>$logfile")
       or die "Couldn't redirect STDERR to $logfile";
     open(LOG, ">&STDERR")
       or die "Couldn't redirect STDERR";
   };
   
   open(IN, $file)
     or die scalar(localtime)." Couldn't open file $file";
   
   END {
     close(LOG);
   }; 

Now you could use:

   print STDERR "...";   # or
   print LOG "...";

to write text into the logfile! The other advantage is that all
written on STDERR at other occasions will also be inserted into the
logfile.

    Dave> but would like to include the line number it died
    Dave> on. Possible?

'die' write to STDERR --> into the logfile. If you do not end the line 
given to 'die' with '\n' the scriptname and the linenumber where this
'die' was called will be appended to your errortext.

    Dave> Thanks, Dave

You're welcome,

Clemens.


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

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


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