[15917] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3330 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 12 14:05:48 2000

Date: Mon, 12 Jun 2000 11:05:20 -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: <960833120-v9-i3330@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Mon, 12 Jun 2000     Volume: 9 Number: 3330

Today's topics:
        A Question payman99@my-deja.com
    Re: A Question <rootbeer@redcat.com>
    Re: A Question nobull@mail.com
    Re: ANSI Perl: No Way !!! <dan@tuatha.sidhe.org>
    Re: ANSI Perl: No Way !!! <dan@tuatha.sidhe.org>
        ASP and Perl <samay1NOsaSPAM@hotmail.com.invalid>
        Base64 encoded JPEG <peredina@progress.com>
    Re: Beginner's mySQL Tutorial? <blah@nospam.com>
    Re: Beginner's mySQL Tutorial? (Mark-Jason Dominus)
    Re: Build error in module IO <dan@tuatha.sidhe.org>
        Building Perl on AIX using gcc rather than VAC++ <pandpATattglobal.net>
    Re: Building Perl on AIX using gcc rather than VAC++ <rootbeer@redcat.com>
        CGI::Fast needs perl with sfio? jhefferon@my-deja.com
    Re: Compling Blowfish Decryption Code <rootbeer@redcat.com>
        Diff. between putting & before a subroutine call <ender29@my-deja.com>
    Re: Diff. between putting & before a subroutine call <samay1NOsaSPAM@hotmail.com.invalid>
    Re: Diff. between putting & before a subroutine call <andersen+@rchland.ibm.com>
    Re: Encrypting / decrypting. <khera@kciLink.com>
        filling a buffer with a pattern <raju.kurunkad@wipro.com>
    Re: filling a buffer with a pattern <rootbeer@redcat.com>
    Re: filling a buffer with a pattern nobull@mail.com
    Re: Help wtih Regular Expression <rootbeer@redcat.com>
    Re: Help wtih Regular Expression <rootbeer@redcat.com>
    Re: Help wtih Regular Expression <rootbeer@redcat.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Mon, 12 Jun 2000 16:19:40 GMT
From: payman99@my-deja.com
Subject: A Question
Message-Id: <8i32id$ajq$1@nnrp1.deja.com>

Hi,

I have created a form with text area in it. I would like to transfer
what you type in the text area to a file. I appreciate your help.

Thanks in advance


Here is my html:


<form name="ooasform" method="POST" action="./ff.cgi">
      <p>
        <TEXTAREA name="ooastextarea" value=$input(scantype) ROWS=20
COLS=70>
        </TEXTAREA>
        <br>
        <input type="SUBMIT" name="submit" value="Submit">
        <input type="RESET"  name="reset" value="Reset">
      <p>

    </form>


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


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

Date: Mon, 12 Jun 2000 09:42:37 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: A Question
Message-Id: <Pine.GSO.4.10.10006120941020.18837-100000@user2.teleport.com>

On Mon, 12 Jun 2000 payman99@my-deja.com wrote:

> Subject: A Question

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

> I have created a form with text area in it. I would like to transfer
> what you type in the text area to a file. I appreciate your help.

You should probably write a Perl program to handle this. Whether you
choose to use Perl or not, you'll probably want to search for the docs,
FAQs, and newsgroups about CGI programming, such as
comp.infosystems.www.authoring.cgi. Cheers!

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



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

Date: 12 Jun 2000 17:47:42 +0100
From: nobull@mail.com
Subject: Re: A Question
Message-Id: <u91z22etht.fsf@wcl-l.bham.ac.uk>

payman99@my-deja.com writes:

> Subject: A Question

Not only is this an utterly useless subject line it's not even
accurate! You are not asking a question.  You are asking someone to
write your script for you.

You should not expect people to be prepared to work harder than you
for your benefit unless you are paying them.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Mon, 12 Jun 2000 15:37:55 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: ANSI Perl: No Way !!!
Message-Id: <nt715.111470$hT2.435404@news1.rdc1.ct.home.com>

Henry <htp@mac.com> wrote:
> In article <RvA05.110150$hT2.432156@news1.rdc1.ct.home.com>, Dan 
> Sugalski <dan@tuatha.sidhe.org> wrote:

>> You'll note that use strict is off by default. Perl 5, by default, behaves
>> identically to perl 4, with a few well-documented exceptions. (The
>> biggest being that perl 5 lacks perl 4's buffer overrun problems)

> Golly!

> With such _consistent_ behaviour across a major revision, and such 
> _good_ documentation to boot, one wonders why a formal standard is 
> required at all!

To guarantee that it continues to happen across major versions, of course.
And to let people who want to see exactly what perl's supposed to be
doing.

> Wasn't it _you_ who was arguing in another thread that the whole reason 
> we need formal standardisation is because Perl's behaviour is 
> _inconsistent_ from one version to the next?

I was't arguing that a formal standard was needed, merely that it would be
a good thing. And it's possible that Gojira actually does have a
legitimate issue with some undocumented change in behaviour. 

> Could you please make up your mind - it's hard to shoot down a moving 
> target.

It would help, I think, if you shot at the target that was there, rather
than the one you think you're looking at.

					Dan


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

Date: Mon, 12 Jun 2000 16:01:33 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: ANSI Perl: No Way !!!
Message-Id: <xP715.111471$hT2.435944@news1.rdc1.ct.home.com>

Godzilla! <godzilla@stomp.stomp.tokyo> wrote:
> Dan Sugalski wrote:

>> No insult was intended--

> pffftt... mule manure. Again you are assuming
> me to be an idiot.

Nope. I'm assuming you're intelligent and capable of reasonable
comprehension of english.

>> Not to put too fine a point on it, but I'm *in* the 'inner sanctum', such
>> as it is. (And, as inner sanctums go, it could use a new coat of paint) 

> No, this cabal needs to be razed and rebuilt, fresh.

What, perl5-porters? It's doing well enough. No urban renewal is needed.

>> > My moniker is Godzilla as you know, Mr. Suckalot.
>  
>> I prefer Gojira. You want to use the version of perl 
>> that perl 5 sprang from, and I'll use the version of 
>> the lizard that Godzilla sprang from. fair is, 
>> after all, fair.

> I will consider this an open license to insult you
> in any manner I wish with no objection from you.
> Fair is fair, meathead. I have asked for a bit
> of common courtesy

You asked for that courtesy while simultaneously trying to insult me,
while at the same time missing the relationship between what Gojira and
Godzilla.

I assumed this was a heavy-handed and rather unsophisticated attempt at
irony.

>> If that's how you want to be addressed, that's fine, 
>> Gojira. Sign your postings with that name and I'll 
>> be happy to.

> I did sign my article with my name. You have not
> addressed me as requested.

Your message was still marked as coming from a giant radiation-spewing
lizard. You tacked on a name and credential to the end but, as I said,
they didn't verify. The UCal system has no record of you as a current
faculty or staff member in their publically accessible record.

Regardless, none of this is perl related, and I'll restrict myself to that
with you from now on.

>> > Not only better, but more efficient, more powerfully
>> > and a lot faster.
>  
>> More efficiently and faster, perhaps. More powerfully? 
>> No. You can't wrap the functionality of CGI.pm into thirty 
>> lines no matter how much you try.

> You, like Mr. Schwartz, are trying to compare apples and
> alligators.

You claimed to be able to do in 30 lines what all of CGI.pm does. Short of
leaving out newlines, that's just impossible.

>> Once again, perl 5 is the responsibility of Larry Wall, 
>> who's ego is quite  small. Perl 5 is also a better 
>> design under the hood than perl 4 was.

>> Perl is far from dead, and does have significant leadership.
>> That you are unfamiliar with them....

> Mule manure. First you speak of an inner sanctum, people
> responsible for Perl development. Now you cast all blame
> and responsibility on Mr. Wall.

There is no contradiction. Larry rewrote the code making up perl 4 and
produced perl 5. He later handed off the responsibility for direct
development to other folks, but still retains final say and responsibility
for what is in perl 5. 

>> > Simply to annoy you Perl Professionals by writing
>> > programs which do amazing and astounding 'things'
>> > none of you experts possess the skills to write,
>> > or even copy and duplicate.
>  
>> Like what? Post code, please.

> As if.

Claims with no backing are baseless. Code, please. Besides, if you're as
good as you say then posting code won't hurt you in the least, as your
code would of course be secure.

>> LWP requires the functionality of perl 5 to work with
>> any speed. If it was implemented in the language subset
>> available with perl 4 it would be significantly slower,
>> quite a bit bigger, and probably wouldn't exist at
>> all. I really doubt Gisle or Martijn would've even 
>> bothered. Perl 4 throws up far too many roadblocks to 
>> have made it worthwhile.

> Wait.. you just said Mr. Wall is solely responsible
> for development of Perl. Who are these other people
> or are you suffering a credibility crisis?

Gisle and Martijn are the two people who wrote the LWP module. (Which you,
of course, knew, having read the documentation for LWP)

> I have stated, quite clearly, my opinion is modules
> are an excellent concept. 

"bugy bloated code" was the opinion you clearly stated.

> However, modules could have been
> very easily incorporated into Perl 4 without having to
> introduce buggy bloated Perl 5.

Bug reports, please. If perl 5 isn't behaving the same way as perl 4, file
bug reports. You haven't, to date, reported any.

Wedging modules into perl 4 wasn't possible, and it did require a fairly
major overhaul to get them in. 

> My personal viewpoint is, Perl 5 has been developed to 
> counter a market share being grabbed by other languages,
> such as Java and Microsoft's Active Server Programming.

Perl 5 predates both ASP and Java, Gojira. 

					Dan


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

Date: Mon, 12 Jun 2000 10:45:46 -0700
From: Samay <samay1NOsaSPAM@hotmail.com.invalid>
Subject: ASP and Perl
Message-Id: <07748c82.0e466b4e@usw-ex0103-019.remarq.com>

Hi,
  I am building pages with Visual Interdev..
  And using Perlscript in ASP..
  and it doesn't work..

  I tried direct files from c:perl\eg\aspsamples\


  The server hangs..
  Now am I doing something wrong..

  I posted here, because VBScript works and PerlScript doesn't
work..  I have installed and checked everything while installing
Perl 5.005. Do I need to configure anything else..?








* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



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

Date: Mon, 12 Jun 2000 13:09:54 -0400
From: peredina <peredina@progress.com>
Subject: Base64 encoded JPEG
Message-Id: <39451962.75A328EA@progress.com>

Im trying to process a Netscape directory entry (Base64 encoded jpg) to
a file.

I understand PERLdap with no difficulty.

I've tried using Mime::Base64, to no avail.

I've processed normal jpeg's before with a simple open command.

Anyone have any experience with this? Im sure it's something Im missing
here.

Thanks.


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

Date: Mon, 12 Jun 2000 17:04:45 +0200
From: Marco Natoni <blah@nospam.com>
Subject: Re: Beginner's mySQL Tutorial?
Message-Id: <3944FC0D.6FBA1165@nospam.com>

Brian,

brian d foy wrote:
>>> Thanks! But is there a Tutorial on Modules or something like 
>>> that? My Perl knowledge is *very* limited... :-)
>> Of course: the DBI module is well-documented.  However, a 
>> minimal knowledge of what DDL and DQL are is required.
> i have no idea what DDL or DQL are, but i can use the DBI 
> module quite effectively nonetheless.

  Data (Definition|Query) Language.  I wonder that you can take real
advantage in using DBI module if you do not know them... ;)


	Best regards,
		Marco


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

Date: Mon, 12 Jun 2000 17:59:28 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: Beginner's mySQL Tutorial?
Message-Id: <39452500.4786$2fb@news.op.net>

In article <8i2ojk$c9m$1@news.online.de>,
Raphael Pirker <raphaelp@nr1webresource.com> wrote:
>Hi,
>
>i'm looking for a tutorial that will teach me how to search data in an mySQL
>database, implement them into my scripts and read all the data into
>variables. Any links?

You might want to look at:

        http://www.perl.com/pub/1999/10/DBI.html


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

Date: Mon, 12 Jun 2000 15:34:26 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: Build error in module IO
Message-Id: <6q715.111469$hT2.435404@news1.rdc1.ct.home.com>

Christopher Hahn <chahn@eleganceintime.com> wrote:

> I decided to use this occasion to upgrade from
> 5.00503 to 5.6 with threads.

> The build went fine, but I find that rebuilding all
> the modules that I had added to my system in the
> past has run into problems.

> For the module IO-1.20

Why are you rebuilding IO? It's one of the standard modules. You already
have it. (And version 1.20, FWIW, since that's what ships with perl 5.6.0)

					Dan


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

Date: Mon, 12 Jun 2000 16:34:09 +0100 (BST)
From: "Philip Nelson" <pandpATattglobal.net>
Subject: Building Perl on AIX using gcc rather than VAC++
Message-Id: <cnaqcnggtybonyarg.fw26gx0.pminews@news2.attglobal.net>

I'm wanting to build Perl 5.6.0 on AIX using gcc rather than the IBM supplied
compiler (which is an extra cost option which we don't have).

After reading INSTALL I tried -

sh Configure -Dcc=gcc

but it fails - looks like specifying [aix] during the setup process overrides
this and starts feeding the compiler the IBM C compiler parameters.

Later on in the process it complains about various compile options not being
valid and also not being able to find cc1 (which I think is the IBM
compiler).

Anyone got any clues for me ?

TIA

Phil Nelson
(teamdba@attglobal.net)




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

Date: Mon, 12 Jun 2000 09:46:53 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Building Perl on AIX using gcc rather than VAC++
Message-Id: <Pine.GSO.4.10.10006120944090.18837-100000@user2.teleport.com>

On Mon, 12 Jun 2000, it was written:

> looks like specifying [aix] during the setup process overrides
> this and starts feeding the compiler the IBM C compiler parameters.

That shouldn't happen. But have you seen the hints/aix.sh file? That may
need some fixing. Good luck with it!

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



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

Date: Mon, 12 Jun 2000 16:35:40 GMT
From: jhefferon@my-deja.com
Subject: CGI::Fast needs perl with sfio?
Message-Id: <8i33gq$b75$1@nnrp1.deja.com>

Hello,

I want to use CGI::Fast.  The documentation refers to the fastcgi
web site, saying that a patch kit is needed for Perl.  From that
web site, I take it that I need to compile Perl to have the io
done with sfio.  Is that correct?

The problem is that I can't get sfio97 to compile.  I have a very
generic linux (RH 6.0), and I can get sfio99 to compile, but
on CPAN is listed sfio97, and I'm worried there is a mismatch.
If anyone can either give me a hint about how to compile '97 (I
followed the directions), or tell me that '99 is OK, or let me know
the best way to use CGI::Fast, I'd be very grateful.

(By the way, I've also tried FCGI-0.52, but it won't allow CGI.pm
to work.)

Thanks,
Jim Hefferon


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


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

Date: Mon, 12 Jun 2000 08:46:24 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Compling Blowfish Decryption Code
Message-Id: <Pine.GSO.4.10.10006120843500.10286-100000@user2.teleport.com>

On Mon, 12 Jun 2000, JG Wright wrote:

> I've never done any Perl programming but my colleague is encrypting
> information using a Perl blowfish routine and I need a dll or something
> which can decrypt it on a Win98 machine. I've heard you can compile Perl
> code. Is it possible that I could just take my colleague's code and compile
> it into a dll - exposing the 'encrypt' and 'decrypt' methods?

You almost certainly don't want to implement something like Blowfish
directly in Perl. Even "compiling" it won't make it reasonably fast.

Instead, you want to make a module which calls the C code, which compiles
efficiently. If you do it properly, it should work on Unix, Windows, and
other systems. See the perlxs and perlxstut manpages, and h2xs. Good luck
with it!

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



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

Date: Mon, 12 Jun 2000 17:09:47 GMT
From: EnderW <ender29@my-deja.com>
Subject: Diff. between putting & before a subroutine call
Message-Id: <8i35gf$cp3$1@nnrp1.deja.com>

Hi,
 I am newbie to Perl. I use it from time to time. I was looking at
subroutines. I have seen that they guy calls it like &my_sub instead of
my_sub(). Is there a diff. between those two forms ? Thanks

--
Ender Wiggin


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


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

Date: Mon, 12 Jun 2000 10:46:52 -0700
From: Samay <samay1NOsaSPAM@hotmail.com.invalid>
Subject: Re: Diff. between putting & before a subroutine call
Message-Id: <03c9306c.0e8ff17e@usw-ex0103-019.remarq.com>

perldoc perlsub

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



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

Date: Mon, 12 Jun 2000 12:42:08 -0500
From: "Paul R. Andersen" <andersen+@rchland.ibm.com>
Subject: Re: Diff. between putting & before a subroutine call
Message-Id: <394520F0.8DFCD993@rchland.ibm.com>

EnderW wrote:
> 
> Hi,
>  I am newbie to Perl. I use it from time to time. I was looking at
> subroutines. I have seen that they guy calls it like &my_sub instead of
> my_sub(). Is there a diff. between those two forms ? Thanks
> 
> --
> Ender Wiggin
I am not aware of any difference in function.  The &my_sub is, in my
opinion, not as nice to read as my_sub().  The & notation is old but
still works.  If there is a difference, I've not run into it.
-- 
Paul Andersen
-- I can please only ONE person per day.
-- Today is NOT your day.
-- Tomorrow isn't looking good either.


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

Date: 12 Jun 2000 13:46:52 -0400
From: Vivek Khera <khera@kciLink.com>
Subject: Re: Encrypting / decrypting.
Message-Id: <x7r9a2bxmb.fsf@onceler.kcilink.com>

>>>>> "DW" == David Wall <darkon@one.net> writes:

DW> mattking@techie.com (Matt King) wrote in
DW> <8hnsjq$fhm$1@news1.transmedia.de>: 

>> Hi. I need a way to encrypt and decrypt a small string (between 8 and 16
>> chars). I have looked on CPAN, but all I find are add-in modules. I need

DW> perldoc -f crypt

So, how would you recommend he DECRYPT what you just told him to
encrypt using crypt()

If you're gonna answer, at least answer correctly.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-301-545-6996
GPG & MIME spoken here            http://www.khera.org/~vivek/


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

Date: Mon, 12 Jun 2000 15:21:45 GMT
From: Raju K V <raju.kurunkad@wipro.com>
Subject: filling a buffer with a pattern
Message-Id: <8i2v5r$80j$1@nnrp1.deja.com>

hi,

I am in the process of rewriting a disk test suite written in C to perl.
During this process I came across a problem. I have a piece of C code for
which I could think of no perl equivalent. Here it is:

void fill_buffer(char *buffer, unsigned long size, unsigned long pattern)
{
	unsigned long *bp;
	int i;

	buffer = (char *)malloc(size);
	bp =(unsigned long *)buffer;
	for (i=0; i < size/sizeof(unsigned long); i++)
		*bp++=pattern;
}

and later on is written to the device as
write(target_fd, buffer, size);
 .
 .

patterns  are of type
0xaaaaaaaa
0xff00ff00
0x55555555
etc.

Now my question is how does one do the same in perl? that is given a pattern,
how can i treat it as a long and duplicate it n times?

Thanks in advance,
Raju

ps: please cc me in your replies.


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


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

Date: Mon, 12 Jun 2000 09:04:19 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: filling a buffer with a pattern
Message-Id: <Pine.GSO.4.10.10006120902250.10286-100000@user2.teleport.com>

On Mon, 12 Jun 2000, Raju K V wrote:

> given a pattern, how can i treat it as a long and duplicate it n
> times?

Probably with pack() and the 'x' operator, although I can think of at
least two other sensible solutions at the moment. :-)  Cheers!

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



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

Date: 12 Jun 2000 17:33:13 +0100
From: nobull@mail.com
To: Raju K V <raju.kurunkad@wipro.com>
Subject: Re: filling a buffer with a pattern
Message-Id: <u966reeu5y.fsf@wcl-l.bham.ac.uk>

Raju K V <raju.kurunkad@wipro.com> writes:

> Now my question is how does one do the same in perl? that is given a pattern,
> how can i treat it as a long and duplicate it n times?

I'd use the pack() function and the x operator.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Mon, 12 Jun 2000 08:32:30 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Help wtih Regular Expression
Message-Id: <Pine.GSO.4.10.10006120831590.10286-100000@user2.teleport.com>

On Mon, 12 Jun 2000 kittycspot@my-deja.com wrote:

> i need to replace the beginning part of the HTML comment (<!--) and the
> ending (-->) with different strings 

Use HTML::Parser. This isn't a job for simple regular expressions. Cheers!

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



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

Date: Mon, 12 Jun 2000 08:33:44 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Help wtih Regular Expression
Message-Id: <Pine.GSO.4.10.10006120832380.10286-100000@user2.teleport.com>

On Mon, 12 Jun 2000, multiplexor wrote:

> $html =~ s/<!--(\w*)-->/<A NAME="$1">/g;

I don't think that follows the HTML spec for comments. Use HTML::Parser
instead; this isn't a job for simple regular expressions. Cheers!

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



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

Date: Mon, 12 Jun 2000 08:39:34 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Help wtih Regular Expression
Message-Id: <Pine.GSO.4.10.10006120834080.10286-100000@user2.teleport.com>

On Mon, 12 Jun 2000 amitr@w-o-i.com wrote:

> $string =~ s!<\!--(.*?)-->!<A NAME=\"$1\">!gi;

    <!--  How about a comment which
	spans lines? -->

Don't try to parse HTML with simple regular expressions. Use HTML::Parser.
Cheers!

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



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

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


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