[18546] in Perl-Users-Digest
Perl-Users Digest, Issue: 714 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 19 09:21:32 2001
Date: Thu, 19 Apr 2001 06:21:07 -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: <987686467-v10-i714@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Thu, 19 Apr 2001 Volume: 10 Number: 714
Today's topics:
How to make my script work locally as CGI? <jonni@ifm.liu.se>
Re: How to make my script work locally as CGI? <xzrgpnys@yvtugubhfrovm.pbz>
Re: How to make my script work locally as CGI? <pne-news-20010419@newton.digitalspace.net>
Re: How to make my script work locally as CGI? <b_nospam_ill.kemp@wire2.com>
Re: How to make my script work locally as CGI? <flavell@mail.cern.ch>
Re: How to make my script work locally as CGI? <dan@nospam_dtbakerprojects.com>
Re: How to make my script work locally as CGI? (Tad McClellan)
Re: htaccess question (Abigail)
Re: htaccess question <bart.lateur@skynet.be>
ImageMagick <alex2@andrew.cmu.edu>
Re: ImageMagick <dan@nospam_dtbakerprojects.com>
Re: Install of CPAN modules fails during date.t test <ng@conactive.com>
Re: Is a function/class library for processing of SMTP- <ELF@Messer.de>
Re: Is a function/class library for processing of SMTP- <a.kupries@westend.com>
Is there a good Perl certification exam? deneuve@excite.com
Re: Is there a good Perl certification exam? <wyzelli@yahoo.com>
Re: Is there a good Perl certification exam? <uri@sysarch.com>
Re: Laziness, Impatience and Hubris :-) <karlyoung@u6n3c6o1n0sdceigonuusm.com>
Re: Laziness, Impatience and Hubris :-) <ajamtgaa@cisco.com>
Re: Laziness, Impatience and Hubris :-) (Tad McClellan)
Re: Laziness, Impatience and Hubris :-) (Damian James)
Re: Laziness, Impatience and Hubris :-) <iltzu@sci.invalid>
Link Parsing Module <mmortonallen@csu.edu.au>
Re: Link Parsing Module <gellyfish@gellyfish.com>
Re: List comparison <joe+usenet@sunstarsys.com>
Re: looking for regexp-pattern ... <gellyfish@gellyfish.com>
Mailen mit Perl <ballmann@co-de.de>
Makefile question. James.Cummings@uea.ac.uk
Re: Making a GUI in Perl? <elijah@workspot.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 19 Apr 2001 11:45:56 +0200
From: "Jonas Nilsson" <jonni@ifm.liu.se>
Subject: How to make my script work locally as CGI?
Message-Id: <9bmc48$6kh$1@newsy.ifm.liu.se>
Is there a way I can run my perl-scripts using a web-browser, and directing
the output to the browser. (Just like an ordinary CGI-script)
I don't want to install a web-server.
I use:
WinNT 4.00.1381; IE 5.5.50.4522.1800; perl, v5.6.0 built for
MSWin32-x86-multi-thread
Sorry if I passed the border of what's relevant in this newsgroup. At least
I considered this before posting, and decided that it's relevant enough. (I
may be wrong ... )
Feel free to ignore /jN
--
_______________________________
Jonas Nilsson
------------------------------
Date: 19 Apr 2001 10:16:34 GMT
From: kevin metcalf <xzrgpnys@yvtugubhfrovm.pbz>
Subject: Re: How to make my script work locally as CGI?
Message-Id: <3ADEBBC5.41BEC919@yvtugubhfrovm.pbz>
Jonas Nilsson wrote:
> Is there a way I can run my perl-scripts using a web-browser, and directing
> the output to the browser. (Just like an ordinary CGI-script)
> I don't want to install a web-server.
> I use:
> WinNT 4.00.1381; IE 5.5.50.4522.1800; perl, v5.6.0 built for
> MSWin32-x86-multi-thread
> Sorry if I passed the border of what's relevant in this newsgroup. At least
> I considered this before posting, and decided that it's relevant enough. (I
> may be wrong ... )
if you are using winnt client, i am sorry, there isn't a built in
server. if you are using winnt server, then install option pack 4. if
you have it, then use iis. sorry if this is hard to understand. i
can't type much more, as CT keeps me from typing much at all.
--
Kevin Metcalf
(Carbon Ocelot)
email: xzrgpnys@yvtugubhfrovm.pbz
Huh? http://www.flactem.com/ocelot/utils/rot13.html
------------------------------
Date: Thu, 19 Apr 2001 12:25:10 +0200
From: Philip Newton <pne-news-20010419@newton.digitalspace.net>
Subject: Re: How to make my script work locally as CGI?
Message-Id: <d6ftdt48m4a1sqk88svjus90clegfudoid@4ax.com>
On Thu, 19 Apr 2001 11:45:56 +0200, "Jonas Nilsson" <jonni@ifm.liu.se>
wrote:
> Is there a way I can run my perl-scripts using a web-browser, and directing
> the output to the browser. (Just like an ordinary CGI-script)
>
> I don't want to install a web-server.
No.
CGI requires a web server.
(Unless you have a web browser that can execute Perl scripts directly,
of course. Maybe PerlScript may be able to help you, if you're on a
Windows system.)
Cheers,
Philip
--
Philip Newton <nospam.newton@gmx.li>
Yes, that really is my address; no need to remove anything to reply.
If you're not part of the solution, you're part of the precipitate.
------------------------------
Date: Thu, 19 Apr 2001 12:57:32 +0100
From: "W K" <b_nospam_ill.kemp@wire2.com>
Subject: Re: How to make my script work locally as CGI?
Message-Id: <987681736.7113.0.nnrp-14.c3ad6974@news.demon.co.uk>
Jonas Nilsson wrote in message <9bmc48$6kh$1@newsy.ifm.liu.se>...
>Is there a way I can run my perl-scripts using a web-browser, and directing
>the output to the browser. (Just like an ordinary CGI-script)
>
>I don't want to install a web-server.
Then the answer is No. (but what's up with installing a web server?)
But you could do something like this on the dos prompt:
perl mycgi.pl >test.html
Then click on the file in NT explorer
>
>I use:
>WinNT
------------------------------
Date: Thu, 19 Apr 2001 13:57:47 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: How to make my script work locally as CGI?
Message-Id: <Pine.LNX.4.30.0104191352240.12952-100000@lxplus003.cern.ch>
On 19 Apr 2001, kevin metcalf wrote:
> if you are using winnt client, i am sorry, there isn't a built in
> server.
Win32 Apache would be fine, and you'd gain portable expertise.
> if you are using winnt server, then install option pack 4. if
> you have it, then use iis.
...and then, sooner or later, get fed up of its weirdness, and use
Win32 Apache after all.
------------------------------
Date: Thu, 19 Apr 2001 12:26:45 GMT
From: Dan Baker <dan@nospam_dtbakerprojects.com>
Subject: Re: How to make my script work locally as CGI?
Message-Id: <3ADED83D.5DA81E14@nospam_dtbakerprojects.com>
Jonas Nilsson wrote:
>
> Is there a way I can run my perl-scripts using a web-browser,
----------
yes, install a server... its not very hard.
Xitami.com has a free one that is small, fast, and runs cgi with no
tweaking. then your scripts can be fired up on your //localhost
D
------------------------------
Date: Thu, 19 Apr 2001 07:43:23 -0400
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: How to make my script work locally as CGI?
Message-Id: <slrn9dtjqr.2ik.tadmc@tadmc26.august.net>
Jonas Nilsson <jonni@ifm.liu.se> wrote:
>Is there a way I can run my perl-scripts using a web-browser, and directing
>the output to the browser. (Just like an ordinary CGI-script)
>
>I don't want to install a web-server.
Why not?
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 19 Apr 2001 10:05:16 +0000 (UTC)
From: abigail@foad.org (Abigail)
Subject: Re: htaccess question
Message-Id: <slrn9dte2s.5l9.abigail@tsathoggua.rlyeh.net>
Plop (plop740@mail.ru) wrote on MMDCCLXXXVII September MCMXCIII in
<URL:news:edtqdt8c7vmpa9u04i124bjl2chda9kjst@4ax.com>:
$$ Hi,
$$
$$ Sorry if I am not at the right place...
$$
$$ I know how to deny an IP or IP range with the .htaccess file on an
$$ Apache server.
$$
$$ But is it possible to redirect the visitor to a special page (or
$$ script, etc), according to his IP, instead of "denyng" him ?
$$
$$ I know there are some cgi scripts for that, but I "feel' there's a way
$$ with the .htaccess file !
Does "comp.lang.perl.misc" suggest in any way this group has anything
to do with Apache? I don't think so.
Abigail
------------------------------
Date: Thu, 19 Apr 2001 10:15:35 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: htaccess question
Message-Id: <vketdtchel664vb4k9te81gvrus01hmlme@4ax.com>
Plop wrote:
>I know there are some cgi scripts for that, but I "feel' there's a way
>with the .htaccess file !
.htaccess files are a unique feature for the Apache web servers. So the
documentetnation for Apache, or a newsgroup dedicated to this particular
webserver would be a better place to find out.
--
Bart.
------------------------------
Date: Tue, 17 Apr 2001 15:12:36 -0400
From: Alex <alex2@andrew.cmu.edu>
Subject: ImageMagick
Message-Id: <3972845530.987520356@alex2>
I'm kind of a newbie with Perl. I have installed ActivePerl in Win2K and it
appears to be working properly. I then installed ImageMagick with the
PerlMagick interface. But when I try to run a perl script which uses that
module, it gives me an error. If the script contains:
use Image::Magick;
I get the error:
Can't load 'C:/Perl/site/lib/auto/Image/Magick/Magick.dll' for module
Image::Magick: load_file:The specified module could not be found at
C:/Perl/lib/DynaLoader.pm line 200.
Does anyone know what this error means or how to fix it? Thanks.
------------------------------
Date: Wed, 18 Apr 2001 04:02:22 GMT
From: Dan Baker <dan@nospam_dtbakerprojects.com>
Subject: Re: ImageMagick
Message-Id: <3ADD108A.230EAB73@nospam_dtbakerprojects.com>
Alex wrote:
>
> I'm kind of a newbie with Perl. I have installed ActivePerl in Win2K and it
> appears to be working properly. I then installed ImageMagick with the
> PerlMagick interface. But when I try to run a perl script which uses that
> module, it gives me an error. If the script contains:
>
> use Image::Magick;
>
> I get the error:
>
> Can't load 'C:/Perl/site/lib/auto/Image/Magick/Magick.dll' for module
> Image::Magick: load_file:The specified module could not be found at
> C:/Perl/lib/DynaLoader.pm line 200.
>
> Does anyone know what this error means or how to fix it? Thanks.
---------------------
build/installing ImageMagick is NOT trivial if you try to do it manually
to get the "latest" Magick, especially on a windows machine. I have not
tried on win2k, but I know it took several tries to figure out
compatibility issues with ActivePerl on win98. I posted a very detailed
document of my solution a couple months ago for both PCs and non-root
UNIX webhosts. try using the Google search for something containing the
keywords "solution and magick". As I remember, the only thing that
worked on the PC was to use the ppm install utility to handle the
pre-compiled binaries correctly on the PC.
D
------------------------------
Date: Tue, 17 Apr 2001 15:35:45 +0200
From: Kai Schaetzl <ng@conactive.com>
Subject: Re: Install of CPAN modules fails during date.t test
Message-Id: <VA.00001e6c.008ba97b@conactive.com>
> It might perhaps be useful to know what the module you are trying to
> install is. Also when you built Perl on this machine did it pass all
> of the tests ?
>
Thanks for your answer. Well, I did not mention the specific module(s)
because it happens *always* when a module uses one of the tests I
mentioned (date.t, message.t). If I remember it right, one of the
modules performing this test is libwww and another one is done during
installation of Bundle::XML.
Kai
--
Conactive Internet Services, Berlin, Germany
------------------------------
Date: Tue, 17 Apr 2001 11:57:48 +0100
From: "Markus Elfring" <ELF@Messer.de>
Subject: Re: Is a function/class library for processing of SMTP-mails available?
Message-Id: <9bh41i$qvi$1@news.messer.de>
I have found a useful module
(http://search.cpan.org/search?module=Mail::Audit,
http://simon-cozens.org/writings/mail-audit.html) for Perl now.
Does anybody know a similar library for other programming languages?
------------------------------
Date: 17 Apr 2001 22:05:55 +0200
From: Andreas Kupries <a.kupries@westend.com>
Subject: Re: Is a function/class library for processing of SMTP-mails available?
Message-Id: <871yqrmgv0.fsf@bluepeak.westend>
"Markus Elfring" <ELF@Messer.de> writes:
> I have found a useful module
> (http://search.cpan.org/search?module=Mail::Audit,
> http://simon-cozens.org/writings/mail-audit.html) for Perl now.
> Does anybody know a similar library for other programming languages?
Tcl, http://www.purl.org/NET/akupries/soft/mail/
http://www.purl.org/NET/akupries/soft/fmail/
--
Sincerely,
Andreas Kupries <a.kupries@westend.com>
Developer @ <http://www.activestate.com/>
Private <http://www.purl.org/NET/akupries/>
-------------------------------------------------------------------------------
------------------------------
Date: Tue, 17 Apr 2001 00:24:51 GMT
From: deneuve@excite.com
Subject: Is there a good Perl certification exam?
Message-Id: <3adb8d15.20034113@news.cis.dfn.de>
Is there a Perl certification exam which would enhance my employment
prospects? (I have little employment experience but am very familiar
with Perl)
Merci,
Jean
------------------------------
Date: Tue, 17 Apr 2001 10:15:02 +0930
From: "Wyzelli" <wyzelli@yahoo.com>
Subject: Re: Is there a good Perl certification exam?
Message-Id: <98MC6.23$U24.1677@vic.nntp.telstra.net>
<deneuve@excite.com> wrote in message
news:3adb8d15.20034113@news.cis.dfn.de...
> Is there a Perl certification exam which would enhance my employment
> prospects? (I have little employment experience but am very familiar
> with Perl)
>
Try www.brainbench.com
Uri Guttman managed to pass it.... :)
Wyzelli
--
($a,$b,$w,$t)=(' bottle',' of beer',' on the wall','Take one down, pass it
around');
$d='$_$a$s$b$w';$e='$_$a$s$b';sub d{$h=shift;$h=~s/\$(\w+)/${$1}/g;return$h}
sub
e{return(shift!=1)?'s':''}for(reverse(1..100)){$s=e($_);$f=d($d);$g=d($e);
$c.="$f\n$g\n$t\n";$_--;$s=e($_);$e=d($d);$c.="$e\n\n";}print"$c*hic*";
------------------------------
Date: Tue, 17 Apr 2001 03:50:17 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Is there a good Perl certification exam?
Message-Id: <x77l0kkww6.fsf@home.sysarch.com>
>>>>> "W" == Wyzelli <wyzelli@yahoo.com> writes:
W> <deneuve@excite.com> wrote in message
W> news:3adb8d15.20034113@news.cis.dfn.de...
>> Is there a Perl certification exam which would enhance my employment
>> prospects? (I have little employment experience but am very familiar
>> with Perl)
>>
W> Try www.brainbench.com
W> Uri Guttman managed to pass it.... :)
heh!!
and that was with my branes tied up behind my back.
and now i prominently display the branebenchwarmer trademark score i
received on all my perl work. if i didn't pass that test, i would never
have hired myself to work for me. i HAVE my standards!
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html
------------------------------
Date: Mon, 16 Apr 2001 02:22:25 +0100
From: "Karl Young" <karlyoung@u6n3c6o1n0sdceigonuusm.com>
Subject: Re: Laziness, Impatience and Hubris :-)
Message-Id: <987384317.23262.0.nnrp-14.c2ded7c2@news.demon.co.uk>
"John Joseph Trammell" <trammell@bayazid.hypersloth.invalid> wrote in
message news:slrn9de4m4.88h.trammell@bayazid.hypersloth.net...
| More importantly, if you're going to munge your email address,
| munge it to something that doesn't get routed to a valid host.
|
| [ ~ ] nslookup unconscious.co.uk
| Non-authoritative answer:
| Name: unconscious.co.uk
| Address: 212.62.7.9
| [ ~ ]
John, thanks for pointing that out. That Domain Name was registered in July
1999, I have been munging my email address to that, since before that date.
I have now however changed it to something that hopefully no-one will
register. Once again..Thanks :-)
--
Karl
¸ ¸
\(Ö)/
Ô
_/ \_
------------------------------
Date: Mon, 16 Apr 2001 15:17:51 -0600
From: Arne Jamtgaard <ajamtgaa@cisco.com>
Subject: Re: Laziness, Impatience and Hubris :-)
Message-Id: <3ADB617F.542CD9A9@cisco.com>
Karl Young wrote:
> May I ask a question though, which I hope you may be able to answer
> for me? As a newbie to Perl programming, how can I tell if it is
> relevant to post here? If I have a script which doesn't run (& I've
> looked through my books & the FAQ etc.), how can I tell if it is a
> Perl problem or a CGI problem? This is my difficulty, I want to post
> to the correct place, but as a Perl/CGI newbie I am not sure how to
> work out which is the right place, as I can't tell if it is a Perl
> or CGI problem. Many Thanks.
When I have a problem like this, I think of two things:
1) Would I have the same problem in another computing language? If
I wrote your program in tcl, or c, would I still have the
same problem? If so, c.l.perl.misc is not the right place. It
is a cgi problem.
2) There is a group, comp.infosystems.www.authoring.cgi (or ciwac),
that apparently quite deftly handles the cases that fall between
perl and cgi. If I were unsure of a perl/cgi problem, I'd start
there.
Arne
--
Arne Jamtgaard | Qui me amat, amat et canem meam.
Boulder DevTest |
1-720-562-6331 | Love me, love my dog.
ajamtgaa@cisco.com |
------------------------------
Date: Mon, 16 Apr 2001 16:21:36 -0400
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Laziness, Impatience and Hubris :-)
Message-Id: <slrn9dml2g.u0q.tadmc@tadmc26.august.net>
Karl Young <karlyoung@emailaddress.invalid> wrote:
>
>"Tad McClellan" <tadmc@augustmail.com> wrote in message
>news:slrn9dlr5p.t9e.tadmc@tadmc26.august.net...
>| Karl Young <karlyoung@u6n3c6o1n0sdceigonuusm.con> wrote:
>| >
>| >"Garry Williams" <garry@ifr.zvolve.net> wrote in message
>| >news:slrn9dkr8e.6rv.garry@zfw.zvolve.net...
>| >
>| >| There is a TLD specifically for this purpose. You should use it
>| >| instead of hoping.
>| >|
>| >
>| >What is that TLD please Garry?
>|
>|
>| .invalid
>
>Thankyou Tad
Rest assured that that won't be happening again.
I'm going to lighten up a little (is this familiar?) and killfile
trolls as soon as they identify themselves (which you did several
days ago).
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 17 Apr 2001 07:52:25 GMT
From: damian@qimr.edu.au (Damian James)
Subject: Re: Laziness, Impatience and Hubris :-)
Message-Id: <slrn9dntf4.e61.damian@puma.qimr.edu.au>
Craig Berry chose Mon, 16 Apr 2001 18:45:33 -0000 to say this:
>... False hubris, as
>proceeding without *any* hint of a clue is not hubris, but simple
>foolishness.
>
False hubris because posting a FAQ rather than looking at the docs is saying
'my time is more important/valuable than that of anyone else here'.
Mind you, I suppose this is literal hubris in the pejorative sense it once
connoted :-).
Cheers,
Damian
--
@:=grep!($;+=m!$/|#!),split//,<DATA>;@;=0..$#:;while(@;){for($;=@;;--$;;){;(
$:=rand$;+$|)==$;&&next;@;[$;,$:]=@;[$:,$;]}push@|,shift@;if$;[0]==@|;select
$,,$,,$,,1/80;print qq x\bxx((@;+@|)*$|++),@:[@|,@;],!@;&&$/} __END__
Just another Perl Hacker # rev 3 -- a JAPH in progress, I guess...
------------------------------
Date: 17 Apr 2001 14:46:27 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: Laziness, Impatience and Hubris :-)
Message-Id: <987518464.13083@itz.pp.sci.fi>
In article <987441174.8613.0.nnrp-14.c2ded7c2@news.demon.co.uk>, Karl Young wrote:
>
>May I ask a question though, which I hope you may be able to answer for me?
>As a newbie to Perl programming, how can I tell if it is relevant to post
>here? If I have a script which doesn't run (& I've looked through my books &
Start by shunning that mantra of the ignorant, "doesn't run". Things
never just "don't work". They fail, and they fail in some specific way
that will tell you where the problem is, or at least where it isn't.
"Complains about an insecure dependency" is a useful starting point for
an investigation. So is "gives the expected output, but does not modify
the files it should." So is even "gives a 500 server error." But not
"it doesn't work!"
Once you know how it fails, you can ask yourself exactly what it is that
fails. Of course, sometimes you just can't narrow it down to a single
possible area. In that case, you first check the FAQs for *both* areas.
Then, if that didn't help, you post -- maybe even crosspost -- asking "I
can't tell if the following problem is caused by [foo] or by [bar]. Can
anyone suggest a way to figure out what the cause might be?"
The important thing is to be polite, and to offer enough information up
front so that the problem can be diagnosed in either case, preferably
even by people who themselves only know one of the areas. Say which
possibilities you've eliminated, too, both because that will save people
some extra work and because you _might_ have made a mistake there.
Most of all, show that you're willing to learn. Ask how to solve the
problem, not what the solution is. Ask how to tell the difference
between two kinds of problems, not which kind a particular problem is.
In the end, it all boils down to the impression you make. People are,
even here, more than willing to give you a push in the right direction.
They just don't want to start playing Sisyphus.
Ps. A good way to tell CGI and Perl problems apart is to test the script
from the command line. CGI.pm even has a convenient "offline mode" for
this. If your webspace provider doesn't give you shell access, install
Perl on your own computer. Actually, that would be a good idea anyway.
--
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla / Kira -- do not feed the troll.
------------------------------
Date: Tue, 17 Apr 2001 09:08:27 +1000
From: "Matt Morton-Allen" <mmortonallen@csu.edu.au>
Subject: Link Parsing Module
Message-Id: <DVKC6.8$3G3.804@news0.optus.net.au>
Hi All,
does anyone know of a CPAN module that is able to parse HTML and retrieve
all the URLs AND their associated link names/labels? I have had a look at
some like HTML::SimpleLinkExtor which are close, but they don't return the
label (by that I mean for example the "Perl Homepage" from <A
HREF=http://www.perl.com>Perl Homepage</A>). If anyone has any suggestions
I'd really appreciate it, I'd rather not reinvent the wheel if I can avoid
it.
Matt.
------------------------------
Date: 17 Apr 2001 20:13:13 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Link Parsing Module
Message-Id: <9bi84p$pis$1@neptunium.btinternet.com>
Matt Morton-Allen <mmortonallen@csu.edu.au> wrote:
> Hi All,
> does anyone know of a CPAN module that is able to parse HTML and retrieve
> all the URLs AND their associated link names/labels? I have had a look at
> some like HTML::SimpleLinkExtor which are close, but they don't return the
> label (by that I mean for example the "Perl Homepage" from <A
> HREF=http://www.perl.com>Perl Homepage</A>). If anyone has any suggestions
> I'd really appreciate it, I'd rather not reinvent the wheel if I can avoid
> it.
http://www.gellyfish.com/htexamples/geturls.pl
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
------------------------------
Date: 18 Apr 2001 00:22:53 -0400
From: Joe Schaefer <joe+usenet@sunstarsys.com>
Subject: Re: List comparison
Message-Id: <m31yqq25wi.fsf@mumonkan.sunstarsys.com>
"Jim F" <jimbob4334@deja.com> writes:
> I have a file with a list on each line, if I load it into a hash or
> array is there a way I can compare the contents of the whole list at
> once instead of iterating through each?
>
> I would like to do something like
>
> if $string is found in $list then print $string
>
print $string if index($list, $string) >= 0; # $[ == 0
> I did not know where to look.
See
% man perlfunc
% perldoc -f index
for details.
--
Joe Schaefer "The only thing necessary for the triumph of evil is for good
men to do nothing."
-- Edmund Burke
------------------------------
Date: 16 Apr 2001 21:19:39 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: looking for regexp-pattern ...
Message-Id: <9bfnlb$akt$1@uranium.btinternet.com>
CHristian Niss <chris@topitmagic.de> wrote:
> hi there,
>
> this is my problem. I want to highlight search queries in
> html-documents. on the first look I
> thought that it would be quite simple like
> i/$query/<b>$query<\/b>/g
>
> but then, if the query is for example "test" and I have the following
> html:
> <html>
> <body>
> <img src="test.gif">test
> <a href="test.html">here</a>
> </body>
> </html>
>
> the string would be replaced as:
> <html>
> <body>
> <img src="<b>test</b>.gif"><b>test</b>
> <a href="<b>test</b>.html">here</a>
> </body>
> </html>
>
> which means that the query is also replaced inside html-tags. I want to
> avoid this and
> therefore I am looking for a regexp-pattern that replaces only text
> outside of html-tags.
>
You almost certainly want to use HTML::Parser. I have some examples
that may get you started at http://www.gellyfish.com/htexamples/
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
------------------------------
Date: Thu, 19 Apr 2001 13:33:19 +0200
From: "Bastian Ballmann" <ballmann@co-de.de>
Subject: Mailen mit Perl
Message-Id: <20010419.133319.1111783898.736@pc035.co-de.de>
Today the questions grow up...
How can I send out a mail when e.g. the reading of some parameters wasn´t
successful?
There is a nice perl module out there isn´t it?
Greetz
Basti
------------------------------
Date: 19 Apr 2001 11:19:24 GMT
From: James.Cummings@uea.ac.uk
Subject: Makefile question.
Message-Id: <9bmhjs$s7v$1@cpca14.uea.ac.uk>
Right, silly question but:
Any time I do perl Makefile.PL the Makefile produced contains
LDDLFLAGS, LDFLAGS, and sometimes CCFLAGS variables with the
options -arch i386 -arch ppc. Since this is on a powerpc (Mac OS X server)
the -arch i386 almost always makes 'make' die. If I edit the Makefile
by hand and remove -arch i386 from the file then the module will compile
usually without any problems.
However, this means I can't use perl -MCPAN -e shell (easily) and is
time consuming.
So how the heck do I get it *not* to stick in -arch i386 automagically?
Silly question I know, but any suggestions appreciated.
Thanks,
James
--
James Cummings | james@cursus.uea.ac.uk | http://www.cursus.uea.ac.uk/~james
CURSUS Project, School of Music, University of East Anglia,
Norwich, Norfolk, NR4 7TJ,UK
------------------------------
Date: 16 Apr 2001 20:50:55 GMT
From: Eli the Bearded <elijah@workspot.net>
Subject: Re: Making a GUI in Perl?
Message-Id: <eli$0104161649@qz.little-neck.ny.us>
In comp.lang.perl.misc, Michael Carman <mjcarman@home.com> wrote:
> Eric wrote:
> > Is it possible to make a gui in perl instead of that dos window?
> There are several modules for creating GUIs in Perl. The ones I'm aware
> of are Tk, Win32::GUI, and Gtk. Tk is the only one I've used. It seems
You could also build one with X11::Protocol, but that won't help too
much if you don't have X11.
> > Does anyone have any examples i can use?
See below for trivial X11::Protocol example.
Elijah
------
use X11::Protocol;$X=new X11::Protocol;END{$X->FreeGC($G);undef$X}map{$$_=$X->
new_rsrc}(W,F,G);$X->event_handler('queue');$X->CreateWindow($W,$X->root,'Inp'
.'utOutput',$D=$X->root_depth,'CopyFromParent',(0,0),300,30,4,'event_mask',01,
background_pixel=>2**$D-1);$X->CreateGC($G,$W);$X->MapWindow($W);$X->PolyText8
($W,$G,25,28,[0,'Eli the Bearded:Just Another Perl Hacker']);$X->handle_input;
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.
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 V10 Issue 714
**************************************