[13023] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 433 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Aug 9 18:07:15 1999

Date: Mon, 9 Aug 1999 15:05:17 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 9 Aug 1999     Volume: 9 Number: 433

Today's topics:
    Re: "next" and "previous" page links for search results <rootbeer@redcat.com>
    Re: Bacon's Corollary to Godwin's Law (Chris Nandor)
        CGI beginner mirak@vnet.net
        CGI newbie mirak@vnet.net
        CGI/Perl programmer needed <techsearch@home.com>
    Re: Control characters in Perl (Bart Lateur)
    Re: file manipulation? <USENET@questionexchange.com>
    Re: HELP!!! DBI problems. <paul.glidden@unisys.com>
    Re: HELP!!! RE: DBI Modules for perl ver. 5.005 <rootbeer@redcat.com>
        HOW CAN PERL CONVERT HTML CODE holbrookjp@my-deja.com
    Re: HOW CAN PERL CONVERT HTML CODE <llornkcor@llornkcor.com>
    Re: HOW CAN PERL CONVERT HTML CODE <rootbeer@redcat.com>
    Re: How? <gregory_guerin@hp.com>
        I Installed Active Perl, but how can I run my CGI-Scrip <noah@cs.tu-berlin.de>
    Re: I Installed Active Perl, but how can I run my CGI-S <rootbeer@redcat.com>
    Re: kill pid scripts (Jerome O'Neil)
    Re: lstat on a unicode file in NT? <rootbeer@redcat.com>
        Multithreading <freek@coolmail.net>
    Re: Multithreading (Greg Teets)
    Re: Nastiness contrary to the spirit of perl? (Malcolm Ray)
    Re: Need Help - Connecting to HTTP (Marcel Grunauer)
        Need PERL HELP with website wmorris8851@my-deja.com
    Re: Need PERL HELP with website <rootbeer@redcat.com>
        Net::Whois v1.001 <dhudes@ncdsl.com>
    Re: NT Perl script archives <yoss@yossarin.co.uk>
    Re: NT Perl script archives <cassell@mail.cor.epa.gov>
    Re: Passing Parameters <aqumsieh@matrox.com>
        Pattern Matching + inlandpac@my-deja.com
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Mon, 9 Aug 1999 14:16:21 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: "next" and "previous" page links for search results
Message-Id: <Pine.GSO.4.10.9908091414470.7774-100000@user2.teleport.com>

On Mon, 9 Aug 1999, Alan McCoy wrote:

> I'm trying to put together a script that uses the WWW::Search module to pull
> search results from NorthernLight and display them 10 at a time on a web
> page. Currently, I can get the first 10, but can't figure out how to make
> the script create links for the "next" as well as the "previous" pages.

I think Randal did that in one of his first WebTechniques columns. Yes, it
looks like column number two has something pretty near to what you need.
Enjoy!

    http://www.stonehenge.com/merlyn/WebTechniques/

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



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

Date: Mon, 09 Aug 1999 19:20:18 GMT
From: pudge@pobox.com (Chris Nandor)
Subject: Re: Bacon's Corollary to Godwin's Law
Message-Id: <pudge-0908991520190001@192.168.0.16>

In article <7on4s0$gtp$1@info2.uah.edu>, Greg Bacon <gbacon@cs.uah.edu> wrote:

>As the length of a thread in comp.lang.perl.{misc,moderated} approaches
>infinity, the probability that someone will argue with a benchmark goes
>to one.

Nandor's Law goes like this:

The number of flames in a thread is directly proportionate to the
liklihood that a new thread will appear with the name of one of the
particpants in the Subject field.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])


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

Date: Mon, 09 Aug 1999 21:47:55 GMT
From: mirak@vnet.net
Subject: CGI beginner
Message-Id: <370c197a.14184147@news.mindspring.com>

OK,
I've read the Dummies book, Have now been able to successfully
implement Win32 extentions and I now consider myself just above a
novice perl programmer.  The trouble is, I know how to program HTML,
but I can't figure how to implement perl into it.   I can't even
figure out how to make "Hello World" display correctly as shown in the
Perl for Win32 systems.

Can someone please give me the steps to generate a beginners CGI
script using perl?

Thanks,
Karim Wall
mirak63@yahoo.com


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

Date: Mon, 09 Aug 1999 21:47:57 GMT
From: mirak@vnet.net
Subject: CGI newbie
Message-Id: <370c1def.15324467@news.mindspring.com>

Hello,

I now after 6months of perl consider myself an informed novice
regarding PERL. However, I can't seem to figure out how to implement
scripts into an HTML page.  If you are using IIS, do you have to jump
through hoops to get scripts to run from a web page?

Thanks in advance.
Karim Wall


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

Date: Mon, 09 Aug 1999 21:55:16 GMT
From: "Jeff Reynolds" <techsearch@home.com>
Subject: CGI/Perl programmer needed
Message-Id: <87Ir3.128$uU5.152@news.rdc2.occa.home.com>

Go to my website for contact info:

http://www.techsearchsolutions.com




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

Date: Mon, 09 Aug 1999 19:16:01 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Control characters in Perl
Message-Id: <37b028b1.958221@news.skynet.be>

Brundle wrote:

>my $test=join(/\004/,qw(one two three));
>Results in:
>Use of uninitialized value
>
>Anyone know why?

Yes. /\004/ is a regex, and it tests $_, which probably wasn't set. USe

	my $tst = join "\004", qw(one two three);

instead.

	Bart.


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

Date: 9 Aug 1999 21:26:37 GMT
From: QuestionExchange <USENET@questionexchange.com>
Subject: Re: file manipulation?
Message-Id: <580qx@questionexchange.com>

> I have a file which looks like this:   008 PAGE   1 015
> JOHN DOE    1                1 CEDAR AVE.    1
> SOMEWHERE         PA     11111-0000    1
> 07/15/99  006056-1 10.00    2 80     1 027     08/12/98   EST
> PT. E/M LEVEL III        55.00 I:    29.22-    15.78- 10.00
> 1   5-1002 -CRS  99213  715.95 OFFICE 061         ***       ***
> ***       ***       ***    2          .00       .00       .00
> 10.00     10.00 008 PAGE   1 015                 JANE DOE    1
> RD3 BOX 43    1                SOMEPLACE           PA
> 12222-0000    1
> 07/15/99  010050-1 75.00    2 85S    2 027     04/23/98   EST
> PT. E/M LEVEL III        55.00 I:    30.49-    19.51- 5.00    1
> 5-1302 -CRS  99213  V67.0  OFFICE    1    07/27/98   EST PT.
> E/M LEVEL III        55.00                 45.00- 10.00    1
> 5-1102 -CRS  99213  726.11 OFFICE    1    09/14/98   EST PT.
> E/M LEVEL III        55.00 I:    29.22-    15.78- 10.00    1
> 5-0902 -CRS  99213  V43.65 OFFICE    1    10/26/98   EST PT.
> E/M LEVEL III        55.00 I:    29.22-    15.78- 10.00    1
> 5-0802 -CRS  99213  V43.65 OFFICE    1    11/05/98   EST PT.
> E/M LEVEL III        55.00 I:    29.22-    15.78- 10.00    1
> 5-0702 -CRS  99213  V43.65 OFFICE    1    01/21/99   EST PT.
> E/M LEVEL III        55.00                 45.00- 10.00    1
> 5-0502 -CRS  99213  722.10 OFFICE    1    02/04/99   EST PT.
> E/M LEVEL III        55.00 I:    27.71-    17.29- 10.00    1
> 5-0402 -CRS  99213  722.10 OFFICE    1    04/12/99   EST PT.
> E/M LEVEL III        55.00 I:    27.71-    17.29- 10.00    1
> 5-0202 -CRS  99213  V43.64 OFFICE    1    04/12/99   X-RAY
> FEMUR, AP & LAT.       83.00 I:    26.14-    56.86- .00    1
> 5-0002 -CRS  73550  V43.64 OFFICE    1    04/12/99   X-RAY KNEE
> AP.LAT W/OBLIQ    77.00 I:    26.76-    50.24- .00    1   5-
> 0002 -CRS  73562  V43.64 OFFICE    1    04/28/99   REVISION
> TOTAL KNEE,1 COM 6,500.00 I: 1,470.94- 5,029.06- .00    1   5-
> 0005 -EJC  27486  996.4  CMC HOSP.    1    06/03/99   X-RAY
> KNEE AP.LAT W/OBLIQ    77.00 I:    26.76-    50.24- .00    1
> 5-0002 -CRS  73562  996.4  OFFICE 061         ***       ***
> ***       ***       ***    2          .00       .00       .00
> 75.00     75.00   It goes on and on, but my dilema is that i
> need to take the fist part of the file and put it in a format
> that can be read by microsoft access ie
> name,account,date,address,etc... jane doe,12345,2/10/99,182
> market st,etc john doe,23455,4/8/99,109 harmony lane,etc  this
> much i have done...  my dilemma is getting the detail of the
> file into the same format.  All the data is in varying lengths,
> but it is consistant, i can pull the detail out but am having
> trouble manipulating it...  also is there a way that i can
> print a file and in one font and switch to another font in the
> middle of it such as in adding a barcode font... i am using
> linux, if it helps...  ive approached this whole situation from
> varying angles and am not having much luck...  thanks in
> advance.. ted fiedler

  SEND ONLY ANSWERS    ENDORIGINAL Body IS:To get at data of
varying lengths, you  should use Perl regular expressions. You
do not specify enough information  to understand what exactly
is the problem in manipulations. Lines like  1 04/12/99 X-RAY
KNEE AP.LAT W/OBLIQ 77.00 I: 26.76- 50.24-  Can be matched by
regex like  m|(\d+) (\d\d/\d\d/\d\d) (.*) (\d+\.\d*) I: ([\d.-
]+) ([\d.-]+)|  from which you can then pull out the  data
through $1..$9  If this is not yet enough detail, ask again and
explain more precisely what the trouble is.  To print a file in
different fonts: there are *lots* of ways. For instance,  you
can convert it into e.g. TeX and ask TeX to change the font, or
you can write it as postscript.

--
  This answer is courtesy of QuestionExchange.com
  http://www.questionexchange.com/servlet1/showUsenetGuest?ans_id=2339&cus_id=USENET&qtn_id=1471


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

Date: Mon, 9 Aug 1999 14:23:18 -0500
From: "Paul Glidden" <paul.glidden@unisys.com>
Subject: Re: HELP!!! DBI problems.
Message-Id: <7onbkq$20n$1@eanews1.unisys.com>


>I am having problems installing DBI modules for perl 5.005.
>I unzipped the DBI-1.13 module into my c:\perl\lib directory. And then
The readme document states first of all that you should never try to compile
the dbi module inside of your perl directory structure.  Unzip it outside of
the directory structure you are going to have problems.
I
>typed <perl Makefile.pl> at my MS-DOS prompt in c:\perl\lib\dbi-1.13\.
>And then when I type <make> nothing happens.


Do you have a compiler installed on your system?

>When I run my script it gives the following error:
>Can't locate loadable object for module DBI in @INC (@INC contains
>c:\perl\lib   c:\perl\site\lib)
>Can't locate DBI.pm in @INC.
>BEGIN failed.......compilation aborted
>
This is going to happen since the module was not compiled or installed.

There are pre-compiled modules available, perhaps you should try to install
one of those.

Your best bet is to find a pre-compiled version of DBI if you are not
familiar with compiling or do not have a compiler on your system




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

Date: Mon, 9 Aug 1999 13:39:52 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: HELP!!! RE: DBI Modules for perl ver. 5.005
Message-Id: <Pine.GSO.4.10.9908091339100.19222-100000@user2.teleport.com>

On Mon, 9 Aug 1999, Sherry wrote:

> Subject: HELP!!! RE: DBI Modules for perl ver. 5.005

Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.

    http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post

> The error says it cannot find the loadable object for module dbi in @INC

Have you tried looking for the error message in the perldiag manpage? Good
luck with it!

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



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

Date: Mon, 09 Aug 1999 20:24:08 GMT
From: holbrookjp@my-deja.com
Subject: HOW CAN PERL CONVERT HTML CODE
Message-Id: <7ondcq$9e$1@nnrp1.deja.com>



Hi, I am trying to find a script to convert an HTML document so that the
HTML code is removed. If this is possible some syntax help would be
great.

 Basically take:

<HTML>
<BODY>
<P>
We are trying my best to get code converted quickly<BR><HR size=3>
</P>
</BODY>
<HTML>

And some how output this.

We are trying my best to get code converted quickly
,
Thanks



Joe Holbrook


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: 09 Aug 1999 15:16:38 -0600
From: ljp <llornkcor@llornkcor.com>
Subject: Re: HOW CAN PERL CONVERT HTML CODE
Message-Id: <wk672ohcy1.fsf@llornkcor.com>

there's already scripts out there that do just this-
http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/striphtml.gz



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

Date: Mon, 9 Aug 1999 14:54:42 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: HOW CAN PERL CONVERT HTML CODE
Message-Id: <Pine.GSO.4.10.9908091453590.7774-100000@user2.teleport.com>

On Mon, 9 Aug 1999 holbrookjp@my-deja.com wrote:

> I am trying to find a script to convert an HTML document so that the
> HTML code is removed.

Start with HTML::Parser from CPAN. Good luck!

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



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

Date: Mon, 09 Aug 1999 14:43:55 -0600
From: Greg Guerin <gregory_guerin@hp.com>
Subject: Re: How?
Message-Id: <37AF3D8B.46B09E1@hp.com>

just use backslashes before the parenthesis in your expression.  ie:

$temp = "(contents)";
$temp =~ s/\(contents\)//;  # substitue "(contents)" with nothing
                                        # or w/ whatever you want

good luck

Robert Ho wrote:

> I have a file which contains expressions:    "(contents", and
> "(contents)"
>
> I want to substitute "(contents)" with a blank space but I'm finding
> it's not
> so easy due to the parentheses.  Can someone help me with a perl trick?
>
> --
> Robert Ho rho@hns.com



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

Date: Mon, 9 Aug 1999 21:15:32 +0200
From: "Henni" <noah@cs.tu-berlin.de>
Subject: I Installed Active Perl, but how can I run my CGI-Scripts activated by webside on my computer?
Message-Id: <7on9nb$21p$1@news.cs.tu-berlin.de>

I Installed Active Perl, but how can I run my CGI-Scripts activated by
webside on my computer?

Please help.
noah@cs.tu-berlin.de

P.S. Running my pl-files is no problem for me and works on my computer..

--
E-mail:           noah@cs.tu-berlin.de
Homepage:   http://user.cs.tu-berlin.de/~noah/index.htm
ICQ:               6777410





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

Date: Mon, 9 Aug 1999 14:48:48 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: I Installed Active Perl, but how can I run my CGI-Scripts activated by webside on my computer?
Message-Id: <Pine.GSO.4.10.9908091447290.7774-100000@user2.teleport.com>

On Mon, 9 Aug 1999, Henni wrote:

> I Installed Active Perl, but how can I run my CGI-Scripts activated by
> webside on my computer?

It sounds as if you need to configure your webserver. That's beyond the
scope of this newsgroup, of course. But you should check the docs, FAQs,
and newsgroups about your webserver and webservers in general. If you (or
anyone else reading this) doesn't know what those are or how to find them,
please let me know. Cheers!

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



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

Date: 9 Aug 1999 15:46:04 GMT
From: jeromeo@atrieva.com (Jerome O'Neil)
Subject: Re: kill pid scripts
Message-Id: <7omt3s$j5c$2@brokaw.wa.com>

In article <slrn7qs86i.9fk.abigail@alexandra.delanet.com>,
	abigail@delanet.com (Abigail) writes:
> Dutch McElvy (dutch@mindspring.com) wrote on MMCLXVIII September MCMXCIII
> in <URL:news:7ol1k0$is0$1@nntp6.atl.mindspring.net>:
> `` 
> `` kill -9 `ps -ef | grep foo | awk -e '{print $2}'`
> 
> That doesn't compile. 

ksh finds it quite agreeable.

> You need a , after the -9. Are your sure you want
> to kill process groups? With a SIGKILL? Shouldn't you first try a more
> friendly SIGTERM? 

I certainly would, but this is apparently not what the original poster
has in mind.

-- 
Jerome O'Neil, Operations and Information Services
Atrieva Corporation, 600 University St., Ste. 911, Seattle, WA 98101
jeromeo@atrieva.com - Voice:206/749-2947 
The Atrieva Service: Safe and Easy Online Backup  http://www.i-filezone.com


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

Date: Mon, 9 Aug 1999 14:14:14 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: lstat on a unicode file in NT?
Message-Id: <Pine.GSO.4.10.9908091409540.7774-100000@user2.teleport.com>

On 9 Aug 1999, Tom Shou wrote:

> It turns out that on a WindowsNT4.0 system,  lstat returns "no such
> file" because lstat can't handle the unicode name of the file since
> its 2 bytes per character. 

Where did you get the filename? Was it returned by readdir and friends?
Whatever filename you get from readdir should be suitable for lstat.

Perl is (or should be) calling the underlying system to ask about that
file. If the system can't handle the names of its own files, something is
wrong. But maybe you should file a bug report, just in case.

Good luck with it!

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



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

Date: Mon, 09 Aug 1999 13:40:18 -0700
From: frEEk <freek@coolmail.net>
Subject: Multithreading
Message-Id: <37AF3CB0.EB8FFC9@coolmail.net>

Sorry, I know I have already posted this, but (surprisingly) I haven't
seen a single resonse, and it it fairly important, so here goes again. I
am trying to find the Thread module, but can only find the pod (on the
perl.com site). I need to know where I can get it and how much lighter
threading is than forking. Also, do I have to rebuild perl from source
to enable threading? I do not want the whole interpreter/execution to be
threaded, just where I multithread it (like forking).

Many thanks

--
Life is out to get me....
ERTW!




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

Date: Mon, 09 Aug 1999 21:57:08 GMT
From: teetsg@fuse.net (Greg Teets)
Subject: Re: Multithreading
Message-Id: <37af4ea8.98489964@nntp.fuse.net>

Try CPAN.

On Mon, 09 Aug 1999 13:40:18 -0700, frEEk <freek@coolmail.net> wrote:

>Sorry, I know I have already posted this, but (surprisingly) I haven't
>seen a single resonse, and it it fairly important, so here goes again. I
>am trying to find the Thread module, but can only find the pod (on the
>perl.com site). I need to know where I can get it and how much lighter
>threading is than forking. Also, do I have to rebuild perl from source
>to enable threading? I do not want the whole interpreter/execution to be
>threaded, just where I multithread it (like forking).
>
>Many thanks
>
>--
>Life is out to get me....
>ERTW!
>
>



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

Date: 9 Aug 1999 20:45:21 GMT
From: M.Ray@ulcc.ac.uk (Malcolm Ray)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <slrn7quff1.q80.M.Ray@carlova.ulcc.ac.uk>

On 09 Aug 1999 16:32:56 GMT, Darrell Stec <darstec@aol.com> wrote:
>The keywords in Assembly are abbreviations which resemble the words they stand
>for, much closer to the English language, than do the cryptic abbreviations and
>symbols used in Perl.  Take for instance the "g" option used in pattern
>matching, there is nothing in that character that even remotely hints that it
>is used to find every occurrance of the pattern.
>
>While the Assembly version of that expression might be more tedious to write,
>the keywords like MOV, CMP, etc., that would be used in the code,  would be
>much easier to read with less memorization than the Perl counterpart.

There are too many counter-examples from various processors' instruction
sets to be worth listing.  Get a DEC-10 programmer to explain to you
what the JUMP instruction did (or didn't do).  But if you want a language
in which every keyword is clearly derived from an English word, I suggest
you give up on both Perl and assembler and switch to COBOL.
-- 
Malcolm Ray                           University of London Computer Centre


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

Date: Mon, 09 Aug 1999 20:01:57 GMT
From: marcel.grunauer@lovely.net (Marcel Grunauer)
Subject: Re: Need Help - Connecting to HTTP
Message-Id: <37b1338d.2848936@enews.newsguy.com>

On Mon, 09 Aug 1999 00:52:51 GMT, Jordan DeLozier
<master@openendon.com> wrote:

>brian d foy wrote:
>
>> In article <37ACFDE7.C4EE9F60@openendon.com>, Jordan DeLozier <master@openendon.com> posted:
>>
>> > Bill Moseley wrote:
>> >
>> > > Jordan DeLozier (master@openendon.com) seems to say...
>>
>> > > > doesn't detect 404 errors or any erros.  I don't want to use LWP modules
>> > > > though.
>> > >
>> > > Why not?
>>
>> > I do not think my server has them, and besides that, I don't know how to use
>> > it.
>>
>> with that logic:  you don't know how to do this task, so why do it?
>>
>> --
>> brian d foy
>> CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
>> Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>
>
>As I've said, I have created a script that has the ability of getting meta tags. All I need is
>some help, and with that logic: That is why I asked.

If your server doesn't have the LWP modules, then install them. Or
have someone install them. If you don't want to use LWP, look at the
source.


Marcel
-- 
perl -e 'print unpack(q$u$,q$82G5S="!!;F]T:&5R(%!E<FP@2&%C:V5R$)'


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

Date: Mon, 09 Aug 1999 19:55:05 GMT
From: wmorris8851@my-deja.com
Subject: Need PERL HELP with website
Message-Id: <7onbmj$usl$1@nnrp1.deja.com>

I have a website (http://harvest.weather.com/cgi-
bin/3com/avantgo_sub/entry.pl ) that does not update
the current information unless you click on refresh.
When you type in a city name or zip code, it displays
the info. for the previous entry.  If you click on
refresh, then the info. for the recent zip or city
displays.  Thsi site runs on APACHE webserver

Ex.  First, enter a zip coder (or city name)  "30087"
        Nothing happens.
    Next, enter another zip code "31792"
        The information for "30087" displays.
    Click refresh (at the bottom of the screen) and
        the right info appears for "31792"
Does anyone have a possible solution for this problem.  Thanks
for your help.




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 9 Aug 1999 14:53:35 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Need PERL HELP with website
Message-Id: <Pine.GSO.4.10.9908091449480.7774-100000@user2.teleport.com>

On Mon, 9 Aug 1999 wmorris8851@my-deja.com wrote:

> I have a website (http://harvest.weather.com/cgi-
> bin/3com/avantgo_sub/entry.pl ) that does not update
> the current information unless you click on refresh.

> Does anyone have a possible solution for this problem.  

Is that the problem, that the webpage doesn't refresh without a request
from the remote user? It doesn't sound like a Perl problem; your Perl code
seems to be doing what you asked of it, and the problem would be the same
if you were using another programming language. 

Maybe you should look for the docs, FAQs, and newsgroups about sending
information over the web to see whether there's a different way of doing
what you want. If you (or anyone else reading this) don't know what those
things are or where to find them, let me know. Cheers!

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



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

Date: 9 Aug 1999 21:12:20 GMT
From: "Dana Hudes" <dhudes@ncdsl.com>
Subject: Net::Whois v1.001
Message-Id: <7ong7k$rp7$1@play.inetarena.com>

Some small fixes for portability. Thanks to Chris Nandor for testing
this on the Macintosh.  The namespace thing hasn't quite got resolved
yet, the PAUSE folks are busy upgrading the PAUSE itself.  Meanwhile,
it is available from

ftp://pause.kbx.de/pub/from.CPAN/authors/id/D/DH/DHUDES/Net-Whois-1.001.tar.
gz since it isn't on the regular CPAN even under my author ID.

If you are interested in my set of scripts for name server audit,
which uses this version of Net::Whois, let me know and I will clean
them up and put them up on CPAN as well.

Dana Hudes





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

Date: Mon, 9 Aug 1999 21:12:48 +0100
From: "Yossarin" <yoss@yossarin.co.uk>
Subject: Re: NT Perl script archives
Message-Id: <%EGr3.2691$Yu4.100425@news2-hme0.mcmail.com>

Thanks for the reply,

cany you tell me where I can find the win32 perl FAQ.
Do you know of any decent freeware/shareware archives of win32 perl scripts?

Yoss




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

Date: Mon, 09 Aug 1999 14:18:29 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: NT Perl script archives
Message-Id: <37AF45A5.F491CDAE@mail.cor.epa.gov>

Yossarin wrote:
> 
> Thanks for the reply,
> 
> cany you tell me where I can find the win32 perl FAQ.
> Do you know of any decent freeware/shareware archives of win32 perl scripts?

The best place to get the win32 FAQ (and all the other docs too) is by
doing the amazingly easy install of ActiveState Perl.  Download the file
from www.activestate.com; click on it so it will install itself; note
where on your Start Menu it sticks the 'on-line documentation'; then
click
there and get the HTML version of the docs, in your favorite browser, on
your personal machine.  Scroll down the left-hand frame and you'll find
the
ActivePerl FAQ.. and much more.

There are tons of short programs and code snippets scattered throughout
the docs.  And you can find lots more by looking in the archives of
the win32 Perl mailing lists at ActiveState.  Subscribe to one or two
of those mailing lists, and see new code every day [the bad code usually
gets corrected in short order].

HTH,
David
--
David Cassell, OAO                               
cassell@mail.cor.epa.gov
Senior Computing Specialist
mathematical statistician


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

Date: Mon, 9 Aug 1999 13:45:43 -0400 
From: Ala Qumsieh <aqumsieh@matrox.com>
To: amerar@ci.chi.il.us
Subject: Re: Passing Parameters
Message-Id: <x3y1zdc97ax.fsf@tigre.matrox.com>


amerar@ci.chi.il.us writes:

> We are running Solaris 2.6 here.  

impressive.

>                                   I want to be able to pass command-line
> parameters to a Perl script.  How can I do this?

	% podgrep command line arg
	/opt/GNUperl5.004_04/lib/pod/perlsec.pod:command line arguments, environment variables, locale information (see
	/opt/GNUperl5.004_04/lib/pod/perlvar.pod:The array @ARGV contains the command line arguments intended for the

Thus, checkout the entry for @ARGV in the perlvar.pod file. To access
this piece of doc, simply type 'perldoc perlvar' on your favourite
command window.

> ps.  Please cc in e-mail.

ok ...

HTH,
Ala



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

Date: Mon, 09 Aug 1999 20:44:56 GMT
From: inlandpac@my-deja.com
Subject: Pattern Matching +
Message-Id: <7onek4$190$1@nnrp1.deja.com>

I am currently displaying an HTML document that contains $keyword.

What I have done so far is replace every occurence of $keyword with the
same $keyword but bold and as a different color.

I am having a hard time trying to find a way to only display 5 words
prior to and 5 words after the $keyword (with the $keyword included).

As an example, the output would be as such:

Tom went to the flea $keyword and bought some nice products.

I understand that this might be tricky since a sentence can include
commans, semi-colons, etc.  I would like for the pattern to take this
into consideration also.

I am still fairly new to perl, so please be patient if my explanations
and choice of words are screwy.

Thank You all for the help.

Sincerely,
CLH


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 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.  

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 V9 Issue 433
*************************************


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