[12558] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 6158 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 28 17:07:19 1999

Date: Mon, 28 Jun 99 14:00:20 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 28 Jun 1999     Volume: 8 Number: 6158

Today's topics:
    Re: cgi-lib.pl <rg@fubar.net>
        Constants and strict <robert@corpus.nl>
        CPerl-mode not indenting this properly <aperrin@mcmahon.qal.berkeley.edu>
    Re: David J Pimlott/GB/ITEC/ICI is out of the office. (Rich)
    Re: DBI/Mysql help newbie <swiftkid@bigfoot.com>
        double substitution <gscherr@oeh.org>
    Re: FAQ 3.23: How can I compile Perl into Java? <cassell@mail.cor.epa.gov>
    Re: Linux better than perl? <gbartels@xli.com>
        Locales for french accented letters. <dsmorey@unconundrum.com>
        looking for a key to octalcode list <jorp@cyberdude.com>
    Re: Mr. Christiansen <rockbay@home.com>
    Re: New Site about East Timor (brian d foy)
    Re: Newbie - Perl books - which to get? (rise)
    Re: NEWBIE TRYING TO CODE scott_mark@my-deja.com
        PCI66 / UDMA66 / Ultra66 / Linux? <gbartels@xli.com>
    Re: Please don't read, test only (Greg Bacon)
    Re: please help! regular expression! grahams@wpds.com
        Problem with CGI in IE but not Netscape <mnorris@nospam.compuvisions.com>
    Re: Problem with CGI in IE but not Netscape <mnorris@nospam.compuvisions.com>
    Re: random numbers ? <swiftkid@bigfoot.com>
    Re: random numbers ? <cw@dwc.ch>
    Re: simple question. (Hong Yuan)
    Re: Somebody Help Me! (Tad McClellan)
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

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

Date: Mon, 28 Jun 1999 13:36:13 -0700
From: "Rich G." <rg@fubar.net>
Subject: Re: cgi-lib.pl
Message-Id: <3777DCBD.40120333@hotmail.com>

[ Courtesy cc: sent to quoted author ]

Shannon Dorey wrote:

> Has anyone used this library before. I downloaded it from perl.com but I
> can't seem to get it to work. I assume you just put the program in the
> same directory as your interperter but I'm not sure if you have to do
> something to the code. Thanks.

Umm...you probably don't want to use cgi-lib.pl.  It was designed for Perl
4, and is no longer
supported or updated.  I would recommend installing CGI.pm (and Perl 5+, if
you don't have it).  You can get everything at http://www.cpan.com.

Rich G.




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

Date: Mon, 28 Jun 1999 22:52:30 +0200
From: Robert de Geus <robert@corpus.nl>
Subject: Constants and strict
Message-Id: <3777E08E.1B7CC142@corpus.nl>

L.S.,
I want to use constanst and the "strict" module. I usualy have another
source file containg the constants. I call this file with "require". I
now want to use strict all over the place, but I find that with the
require,  my contstant are not recoqnised in the main routine. I have
tried to make a full fleched module, the same result, exporting all
constants in this module, idem dito, strict does not accept this.

My question is then also more general: How do I treat constants in a
clean way?

Robert de Geus
Amsterdam

Example:

// file contants.pm:
$MAXITEMS=10;

// or file constants.pm
use strict;
my $MAXITEMS=10;

// file main.pm
use strict;
require 'constants.pm';

print $MAXITEMS; // strict error



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

Date: Mon, 28 Jun 1999 12:45:52 -0700
From: Andrew J Perrin <aperrin@mcmahon.qal.berkeley.edu>
Subject: CPerl-mode not indenting this properly
Message-Id: <3777D0F0.8A5AFD9C@mcmahon.qal.berkeley.edu>

Greetings-
Using cperl-mode with emacs 20.3.1 on NT4, the following code-snippet
screws up indenting in braces:

 if ($word =~ /\123(.+)\125/) { #Processor directive
   my $instruction = $1;
   print STDERR "  >>DIRECTIVE: $instruction\n" if $Main::debug;
   if ($instruction =~ /include(?:=)?(.+)/) {
   push(@includes,$1);
 }
      }
      next;
    }

Specifically, the push statement is not indented, and subsequent
right-braces are erroneously shown matching a left-brace one previous to
the correct one. This persists to the end of the package; the code
compiles and (appears to) work correctly, so I believe this to be a
cperl issue. Any ideas? I'll post the whole function if you want it, but
it's 85 lines long.

Thanks.

--
-------------------------------------------------------------
Andrew Perrin - NT/Unix/Access Consulting -
aperrin@mcmahon.qal.berkeley.edu
            I'M LOOKING FOR ANOTHER EXPERIENCED ACCESS
               DEVELOPER - CONTACT ME IF INTERESTED.
        http://www.geocities.com/SiliconValley/Grid/7544/
-------------------------------------------------------------




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

Date: Mon, 28 Jun 1999 20:14:32 GMT
From: spamhater@ucesucks.nouce.com (Rich)
Subject: Re: David J Pimlott/GB/ITEC/ICI is out of the office.
Message-Id: <slrn7nflol.sbg.spamhater@zippy.aa2ys.ampr.org>

On 28 Jun 1999 01:37:41 -0500, Abigail <abigail@delanet.com> wrote:
>david_pimlott@ici.com (david_pimlott@ici.com) wrote on MMCXXVII September
>MCMXCIII in <URL:news:8025679E.00007C8B.00@gbrhn001.ici-group.com>:
>== 
>== IMPORTANT NOTICE:
>== This email is confidential, may be legally privileged, and is for the
>== intended recipient only.  Access, disclosure, copying, distribution, or
>== reliance on any of it by anyone else is prohibited and may be a criminal
>== offence.  Please delete if obtained in error and email confirmation to the
>== sender.
>
>
>By distributing this on Usenet, does that make you a criminal?
>

   More importantly, will David come back from vacation, only
to find hundreds of thousands of messages confirming that everyone on
c.l.p.m got his note in error, and have deleted it?

   Well, he has at least *one* so far....

- Rich



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

Date: Tue, 29 Jun 1999 00:08:13 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: DBI/Mysql help newbie
Message-Id: <7l9kes$3uo9@news.cyber.net.pk>

See the pod pages of DBI module.

perldoc DBI

--
Faisal Nasim (the Whiz Kid)
Web: http://wss.hypermart.net/
AOL: Whiz Swift  ICQ: 4265451
FAX: (815) 846-2877





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

Date: Mon, 28 Jun 1999 21:38:06 +0200
From: Gerolf Scherr <gscherr@oeh.org>
Subject: double substitution
Message-Id: <3777CF1E.D75D0727@oeh.org>

hi everybody!

I have some files, which contain text & scalars, eg:
---
today we have $weather weather.
the weather today is $weather
---

I want to read these files and substitute the $weather variable:

$weather = "nice";
$o = "";

open (FILE,"./template");

while(<FILE>)
{
	chop;
	$o .= "$_";	
}
print $o;

does not work( prints $weather as $weather)
I don't want to use s//g, if possible, all I want to do is the same
thing I have done with here-files.

thanx,
gerolf.


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

Date: Mon, 28 Jun 1999 11:33:13 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: FAQ 3.23: How can I compile Perl into Java?
Message-Id: <3777BFE9.93F390F4@mail.cor.epa.gov>

Randal L. Schwartz wrote:
> 
> >>>>> "David" == David Cassell <cassell@mail.cor.epa.gov> writes:
> 
> David> Has anyone come up with a reason *why* you would want to compile
> David> a Perl program into Java?  Not an excuse, but a real reason that
> David> actually makes sense?
> 
> To make toys that work client-side in a web situation.  For those that
> want to put a lot more sizzle than steak into a marketing
> situation. :)

Yeah, but I consider that an *excuse* rather than a reason...

Hey, I can use that line on *anything* anyone says!  I've
discovered the secret of being a troll!

Seriously, I dislike client-side fiddles, particularly with
argots which anyone can turn off with a mouse-click...

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: Mon, 28 Jun 1999 14:36:34 -0400
From: Greg Bartels <gbartels@xli.com>
Subject: Re: Linux better than perl?
Message-Id: <3777C0B2.65E4CC67@xli.com>

"J.Y." wrote:
> 
> Linux better than perl?
> -JY

wow, I take off for the weekend and 
come back to "Ode To Perl" from Tom,
and Perl/Zen Koans from Joey.

next week: "Perl Line Dancing."

Greg


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

Date: Mon, 28 Jun 1999 19:36:17 GMT
From: "Dan R. Smorey Jr." <dsmorey@unconundrum.com>
Subject: Locales for french accented letters.
Message-Id: <R8Qd3.4088$I72.500428@nnrp1.ptd.net>

Hi Perl People,

Have a question for ya.  We have a search engine built into our web page.
Now we just added a canadian french site.  The client wants the user to be
able to type in something like this...

Exchange

 ...and be able to search and get matches for words with the accent like
this...

Ixchange

or...

Acceptation

and come up with...

Acceptation, @cceptation, acceptation and `cceptation

So, in not so many words, I want the E to match (E, e, I, or i) and the A to
match (A, a, @ or `).  Now, of course I know how to do the case-insensitive
search, it's the extra character that I'm stuck on.  How can this be done?
I checked up on locales and I'm sure this is partly the way to go, but I'm
just not sure how to achieve what I'm trying to achieve.

Thanks in advance for any assistance.

--
Dan R. Smorey Jr.
Programmer/Analyst
UnConundrum, Inc.
http://www.unconundrum.com
dsmorey@unconundrum.com




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

Date: Mon, 28 Jun 1999 23:01:49 -0700
From: slinden <jorp@cyberdude.com>
Subject: looking for a key to octalcode list
Message-Id: <3778614D.F73DA032@cyberdude.com>

hi,

i am looking for a key(board) to octalcode list
a list that contains e.g.
that the ESC-key is 033 in octal.

regards,
sylvia

--
sylvia linden
TMTOWTDI there's more than one way to do it!




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

Date: Mon, 28 Jun 1999 20:43:59 GMT
From: John Douglas <rockbay@home.com>
Subject: Re: Mr. Christiansen
Message-Id: <3777DF3C.1C236F07@home.com>



Lars Gregersen wrote:

> [posted and mailed]
> On Fri, 25 Jun 1999 09:36:57 -0400, "Laran Coates" <lcoates@bu.edu>
> wrote:
>
> >I am trying to write a script to generate pages based on form input.  I know
> >that this is one of the more common utilities on the web.  However, I'm
> >still new to perl and am having quite a bit of trouble writing this script.
> [snipped a lot]
> There is nobody who is going to give you a full answer to your many
> questions. It is true that your problem is not hard to solve for
> someone experinced in Perl (or some other suitable language), but no
> body here is going to write the programme for you (for free that is).
>
> I will try to give you a few pointers:

> [juicy parts snipped]

Yes, this deserves to be projected onto the eyelids (or stapled
to the forehead) of aspiring programmers.

>
>
> ------------------------------
> Lars Gregersen (lg@kt.dtu.dk)
> http://www.gbar.dtu.dk/~matlg

--
john                       Piecemeal growth is a reality. -- Richard P. Gabriel



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

Date: Mon, 28 Jun 1999 15:21:02 -0400
From: brian@pm.org (brian d foy)
Subject: Re: New Site about East Timor
Message-Id: <brian-ya02408000R2806991521020001@news.panix.com>

In article <37772e8b@newsread3.dircon.co.uk>, Jonathan Stowe <gellyfish@gellyfish.com> posted:

> I always thought that a Java.pm group would be a good idea.

there is one.

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


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

Date: 28 Jun 1999 20:44:42 GMT
From: rise@ugcs.caltech.edu (rise)
Subject: Re: Newbie - Perl books - which to get?
Message-Id: <7l8mrq$1pd@gap.cco.caltech.edu>

Rhonda Nowak <rmn@itol.com> writes:

>Beginner Level -
>Learning Perl (2nd Edition) - Randal L. Schwartz
>Teach Yourself Perl 5 in 21 Days - David Till

Advanced Perl Programming - Sriram Srinavasan (ORA)

Much of this book is a bit advanced for the beginner, but the explanations
are so lucid and clear that if you do want to get into one of the covered
topics (references, data structures, subroutines, object-oriented
programming, and persistence all came in handy) you'll find it a big help.
Take it as a conditional recommendation: don't buy it unless you're into
one of the topics (or comfortable with the most of _Programming Perl_ and
_The Perl Cookbook_), but as soon as you are grab it.

Jonathan Conway
rise@ugcs.caltech.edu
--
Jonathan Conway
rise@ugcs.caltech.edu
303-664-1639
346 Pheasant Run


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

Date: Mon, 28 Jun 1999 17:46:54 GMT
From: scott_mark@my-deja.com
Subject: Re: NEWBIE TRYING TO CODE
Message-Id: <7l8cea$ned$1@nnrp1.deja.com>


> I'd suggest removing the script, learn Perl, and start over.
>
> Abigail

Your nice some poeple learn by jumping into coding. He asked for help
not someone to tell him he should be coding. If all you wanted to do is
cut him up. Why bother replying?



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


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

Date: Mon, 28 Jun 1999 15:49:06 -0400
From: Greg Bartels <gbartels@xli.com>
Subject: PCI66 / UDMA66 / Ultra66 / Linux?
Message-Id: <3777D1B2.222BDE23@xli.com>

To my knowledge, Linux does not handle
the new PCI66 slots or the 
associated UltraDMA66 hard drive controller
cards.

the only motheroboards I know of that
_even_  _supports_ PCI66 are:
ASUS p5s-vm
DFI PW65D
INTEL  L440GX+ (dual P3)

can anyone confirm or deny this?
anyone have a working set of hardware and
software drivers to get the full 
bandwidth of these interfaces?

does anyone have a motherboard that supports
PCI66 and is working with Linux at full rate?

Greg


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

Date: 28 Jun 1999 20:48:14 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: Please don't read, test only
Message-Id: <7l8n2e$5q4$1@info2.uah.edu>

In article <37769E9A.55AD7656@hotmail.com>,
	"j.k." <cljlk@hotmail.com> writes:
: Please don't read, test only

Please don't test, Perl only.

Greg
-- 
Norm: I'm in a gambling mood, Sammy. I'll take a glass of whatever comes out
      of that tap. 
Sam:  Oh, looks like beer, Norm. 
Norm: Call me Mister Lucky. 


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

Date: Mon, 28 Jun 1999 20:10:38 GMT
From: grahams@wpds.com
Subject: Re: please help! regular expression!
Message-Id: <7l8krk$r80$1@nnrp1.deja.com>

In article <7l863d$kgh$1@nnrp1.deja.com>,
  hamed53@my-deja.com wrote:
> hi
> can you help me on this please, i am not very good at regular
> expressions :)
> i have this string:
> $mytext  = "-f-hamed-f- -e-hello-e- -f-omid-f- -e-bye-e-";
> as you can see the texts are placed beetween 2 characters: (-e-,-f-)
> like this:
> -f-hamed-f- or -e-hello-e-
> i want to change every character in the format -f- to their replace
> characters: for example
> change the h to 1
> i know i can do this by :
> $mytext  =~ s/h/1/g; or $mytext  =~ s/h/2g;
> they characters inside each -f-(.*)-f is variable, so i dont know what
> it is, it can be -f-good-f-
> after i changed all the character inside each -f-(.*)-f- i would
remove
> the -f- and just write the characters which i have replaces (although
> the new word)
> but also i want to remove all the -e- and just leave the text in
> between them!
> so at the end i would have something like this:
> my replacement chars:
> $mytext =~ s/h/q/g;
> $mytext =~ s/a/w/g;
> $mytext =~ s/m/t/g;
> $mytext =~ s/e/y/g;
> $mytext =~ s/d/k/g;
> $mytext =~ s/i/u/g;
> $mytext =~ s/o/l/g;
> my string at the end would be:
> $mytext  = "qwtyk hello ltuk bye";
> i might have N number of -e- and/or -f-
> by the way e represents english, f represents farsi, so that all the
> words insite the -f- is farsi and all the words inside the -e- is
> english language
> thats y i want to translate all the letters inside the -f- :)
> thanks
> hamed
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>
I'm still a Perl newbie and the more complicated regular expressions
make my eyes cross - you could experiment with the following - which
does most of the things you mentioned, sort of a divide and conquer
approach!

#!perl -w
    use strict;

    my $mytext  = "-f-hamed-f- -e-hello-e- -f-omid-f- -e-bye-e-";

    my $f = '-f-';
    my $e = '-e-';

    my @pairs = split /\s+/, $mytext; # divide it up by the spaces

    # even positions in array 0,2,4 etc. should be farsi
    # and the rest english words
    my $pos = 0;
    foreach my $word (@pairs) {
        if ($pos++ % 2) {
            if ($word =~ /^$e(.*?)$e$/o) {  # to help only compile once
                                            # note the ? non-greedy
                my $english = $1;
                print " $english ";
            } else {
                die "found $word where I was expecting English word\n";
            }
        } else {
            if ($word =~ /^$f(.*?)$f$/o) {  # to help only compile once
                                            # note the ? non-greedy
                my $farsi = $1;   # farsi word on it's own
                #  make your substitutions here!
                $farsi =~ s/h/1/g;
                print "$f$farsi$f";
            } else {
                die "found $word where I was expecting Farsi word\n";
            }
        }
    }
    print "\n";

    1;

P.S.  It scares me to think what Abigail will say about this!!!  :)




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


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

Date: Mon, 28 Jun 1999 15:29:55 -0400
From: Matthew Norris <mnorris@nospam.compuvisions.com>
Subject: Problem with CGI in IE but not Netscape
Message-Id: <3777CD33.BA4BEA51@nospam.compuvisions.com>

    I have written a script to add, remove, and delete information from
a tab-delimited text file that is running on a Unix server.  Each line
of the file contains a number (time the record was created) and that is
how the records are sorted.  The following lines are where the problem
arises, entryNum is the number for one of the records in the file.  The
correct HTML will be outputted in Netscape, but nothing was outputted in
IE.  I then but in the else clause.  The else clause is outputted in
IE.  Why does this occur?  I thought Perl ran only on the server side,
so why would the output be different in IE than in Netscape?  If anyone
has any ideas, please inform me, I am quite puzzled.  Also, if you
should need to see anymore of my code, I will be glad to send it to you.

while (<INFO>)
{
    @line=(split(/\t/,$_));
    print "@line[8]&nbsp;$array{'entryNum'}";   # Test if numbers
correct (they are)
    if (/$array{'entryNum'}/)     # Had different form of test
origionally, same problem.
    {
        # Here is the HTML that displays in Netscape but not IE
    }
    else
    {
        #  This HTML is outputted instead of the above.
    }
}

Thanks,
Matthew Norris



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

Date: Mon, 28 Jun 1999 16:12:17 -0400
From: Matthew Norris <mnorris@nospam.compuvisions.com>
Subject: Re: Problem with CGI in IE but not Netscape
Message-Id: <3777D720.F45F642C@nospam.compuvisions.com>

If the FAQ post was meant for me, I had already checked the FAQ's but they
did not help (at least as far as I saw)  I get output for both, only
Netscape displays the if statement and IE diplays the accompaning else
statement.  It is not in the actual HTML as far as I can tell, it does
display the HTML correctly, it seems to be in the if-else statement which is
what has me confused.

Matthew Norris wrote:

>     I have written a script to add, remove, and delete information from
> a tab-delimited text file that is running on a Unix server.  Each line
> of the file contains a number (time the record was created) and that is
> how the records are sorted.  The following lines are where the problem
> arises, entryNum is the number for one of the records in the file.  The
> correct HTML will be outputted in Netscape, but nothing was outputted in
> IE.  I then but in the else clause.  The else clause is outputted in
> IE.  Why does this occur?  I thought Perl ran only on the server side,
> so why would the output be different in IE than in Netscape?  If anyone
> has any ideas, please inform me, I am quite puzzled.  Also, if you
> should need to see anymore of my code, I will be glad to send it to you.
>
> while (<INFO>)
> {
>     @line=(split(/\t/,$_));
>     print "@line[8]&nbsp;$array{'entryNum'}";   # Test if numbers
> correct (they are)
>     if (/$array{'entryNum'}/)     # Had different form of test
> origionally, same problem.
>     {
>         # Here is the HTML that displays in Netscape but not IE
>     }
>     else
>     {
>         #  This HTML is outputted instead of the above.
>     }
> }
>
> Thanks,
> Matthew Norris



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

Date: Tue, 29 Jun 1999 00:07:18 +0500
From: "Faisal Nasim" <swiftkid@bigfoot.com>
Subject: Re: random numbers ?
Message-Id: <7l9kd7$3uo8@news.cyber.net.pk>

I have to say only one word:

"awesome"

:)

--
Faisal Nasim (the Whiz Kid)
Web: http://wss.hypermart.net/
AOL: Whiz Swift  ICQ: 4265451
FAX: (815) 846-2877





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

Date: Mon, 28 Jun 1999 18:17:06 +0200
From: Christoph Wernli <cw@dwc.ch>
Subject: Re: random numbers ?
Message-Id: <3777A002.4BE4FFA2@dwc.ch>

You should set the an appropriate seed. Check out perldoc -f srand

Cheers,

-Christoph

charlie wrote:
> 
>   Hello all, i am new to perl and have a lot don't understand.
>   i try to generate six numbers out of 1 to 47 randomly by
>   the code below, but it generate the same six numbers every time.
>   THANK YOU !
> 
>  #!/usr/local/bin/perl -w
> $drawn = 0;
> $range = 47;
> DRAWN:while ($drawn < 6){
> $num[$drawn] = int(rand $range) + 1;
> $check = scalar(@num);
> if ($check > 1){
>    for ($compare=0; $compare < ($check - 1); $compare++ ){
>         if ($num[$drawn] == $num[$compare] ){
>         print "having same number twice.\n";
>         redo DRAWN;                         }
>                                                          }
>                 }
>                         }  continue {
>                            $drawn++;}
> @num = sort {$b <=> $a} @num;
> print ?@num\n?;


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

Date: 28 Jun 1999 11:12:47 -0700
From: hongy@panther.cs.ucla.edu (Hong Yuan)
Subject: Re: simple question.
Message-Id: <7l8duv$l0q$1@panther.cs.ucla.edu>

Thanks for all the responses!

A few more words on the issue.  I actually found the

  || (warn ... , return);

line in the File::Find.pm module.  It has a few of those, so those
warning messages will never be seen.

I was modifying the module to handle max-depth breadth-first search so
that it ignores files/dirs deeper than the specified max-depth.  I
found that quite useful.  The change is simple, mainly to the recursive
sub finddir.  If you're interested in the modified version, email me.

Thx!
Hong.



In article <7kon7h$ktm$1@news.cs.ucla.edu>,
Hong Yuan  <hongy@panther.cs.ucla.edu> wrote:
>Hi
>
>I have a line in a subroutine like this:
>
>opendir(D, $dir) || (warn "Can't open $dir: $!\n" and return);
>                                                  ^^^
>
>If I change it to:
>
>opendir(D, $dir) || (warn "Can't open $dir: $!\n", return);
>                                                 ^
>
>It won't print the warning message to STDERR.
>
>Why?
>
>Thx!
>Hong Yuan.




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

Date: Mon, 28 Jun 1999 09:53:45 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Somebody Help Me!
Message-Id: <9pu7l7.uf3.ln@magna.metronet.com>

Jonathan Chum (jchum@jps.net) wrote:

: I use the LWP module to get a url content. Now I need to parse
: the HTML to whatever I want. The problem is that, it doesn't seem
: to parse at all.

: Here's a code snippet:

[snip]

: What am I doing wrong? 


   You are trying to parse HTML without using the HTML::Parser
   (or similar) module(s).

   Visit your nearest CPAN.


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 6158
**************************************

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