[12071] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5671 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat May 15 08:07:18 1999

Date: Sat, 15 May 99 05:00:15 -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           Sat, 15 May 1999     Volume: 8 Number: 5671

Today's topics:
        [Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
    Re: Hash arrays armchair@my-dejanews.com
    Re: Hash arrays armchair@my-dejanews.com
    Re: Hash arrays armchair@my-dejanews.com
    Re: Hash arrays armchair@my-dejanews.com
    Re: Hash arrays armchair@my-dejanews.com
    Re: how to fix file permission mistakes (Lee)
    Re: Perl "constructors" (Andrew Johnson)
    Re: Perl "constructors" armchair@my-dejanews.com
    Re: Perl "constructors" armchair@my-dejanews.com
    Re: Perl "constructors" <tchrist@mox.perl.com>
    Re: Perl "constructors" <tchrist@mox.perl.com>
    Re: Perl "constructors" <tchrist@mox.perl.com>
    Re: Perl "constructors" <tchrist@mox.perl.com>
        Q: regexpr - WHY???? - HELP!!! <posern@informatik.uni-marburg.de>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

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

Date: Sat, 15 May 1999 10:24:01 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage926763841.10084@news.teleport.com>

Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 10 Sep 1998

[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Summer of
1998; of course, ongoing updates are made as needed. ]

For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).

    http://cpan.perl.org/doc/FAQs/

Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.

    perldoc perlfaq
    man perlfaq

If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.

If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.

    http://cpan.perl.org/
    http://www.perl.com/CPAN/
    http://cpan.perl.org/doc/FAQs/FAQ/html/
    http://www.perl.com/CPAN/doc/FAQs/FAQ/html/

You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)

    California     ftp://ftp.cdrom.com/pub/perl/CPAN/
    Texas          ftp://ftp.metronet.com/pub/perl/
    South Africa   ftp://ftp.is.co.za/programming/perl/CPAN/
    Japan          ftp://ftp.dti.ad.jp/pub/lang/CPAN/
    Australia      ftp://cpan.topend.com.au/pub/CPAN/
    Netherlands    ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
    Switzerland    ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
    Chile          ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/

If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:

    setdir usenet-by-group/news.announce.newusers
    send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.

Have fun with Perl!

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


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

Date: Sat, 15 May 1999 11:22:08 GMT
From: armchair@my-dejanews.com
Subject: Re: Hash arrays
Message-Id: <7hjlcv$t2e$1@nnrp1.deja.com>

In article <373cf788@cs.colorado.edu>,
  tchrist@mox.perl.com (Tom Christiansen) wrote:
>  [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc,
>     armchair@my-dejanews.com writes:
> :if the hash has elements:
> :$num_elements = entries(%hash);
>
> READ
> THE
> FUCKING
> MANUAL

You said that before. What is it? Do you just keep hitting the send key?
Here's a dime old fellow. Get a real computer, get a real newsreader,
get a good cup of coffee.

Sheesh.

> --
> Unix is like a toll road on which you have to stop every 50 feet to
> pay another nickel.  But hey!  You only feel 5 cents poorer each time.
> 	--Larry Wall in <1992Aug13.192357.15731@netlabs.com>
>


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


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

Date: Sat, 15 May 1999 11:27:18 GMT
From: armchair@my-dejanews.com
Subject: Re: Hash arrays
Message-Id: <7hjlml$tbf$1@nnrp1.deja.com>

In article <slrn7jpvfq.871.sholden@pgrad.cs.usyd.edu.au>,
  sholden@cs.usyd.edu.au wrote:
> On Sat, 15 May 1999 04:02:06 GMT, armchair@my-dejanews.com wrote:
> >In article <7hh47d$14q$1@nnrp1.deja.com>,
> >  John Porter <jdporter@min.net> wrote:
> >> In article <7hh0nm$uqm$1@nnrp1.deja.com>,
> >>   armchair@my-dejanews.com wrote:
> >> > How do I find out the number of elements in a hash array?
> >> > Thanks
> >>
> >> perldoc perlfaq4: How can I know how many entries are in a hash?
> >
> >Can you add a function (a complement to exists() ) that does it? Then
I
> >can read about it in the part of books that talk about associative
> >arrays, or better yet, in perlfunc.
>
> It's in perlfunc you idiot...
>
> =item keys HASH
>
> Returns a list consisting of all the keys of the named hash.  (In a
> scalar context, returns the number of keys.)
>

Thanks Sam. My "manual" is "Perl From the Ground Up" by Michael
McMillan,  and it leaves off the (In a scalar context, returns the
number of keys). But I probably would not have understood the "scalar
context" part without an example. I certainly hope that my $scalar =
@array; and my $scalar = keys(%hash) just return some internal count and
especially in the case of the second one, do not actually do an
intermediate step of creating an anonymous array.


> RTFM. RTFM. RTFM, in fact even better, go and learn python. Your brain
is
> not large enough to cope with perl.

So true Sam, very small brain. But nature balances things out and I'm
very large elsewhere. Is that why you guys seem so testy - jealousy?

>
> --
> Sam
>
> Even if you aren't in doubt, consider the mental welfare of the person
> who has to maintain the code after you, and who will probably put
parens
> in the wrong place.	--Larry Wall
>


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


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

Date: Sat, 15 May 1999 11:29:47 GMT
From: armchair@my-dejanews.com
Subject: Re: Hash arrays
Message-Id: <7hjlra$tc0$1@nnrp1.deja.com>

In article <373c1e04@cs.colorado.edu>,
  tchrist@mox.perl.com (Tom Christiansen) wrote:
>  [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc, armchair@my-dejanews.com writes:
> :How do I find out the number of elements in a hash array?
>
> By reading or grepping the manpages, just like the rest of us.  What
part
> of the standard Perl documentation included with each and every Perl
> distribution did you happen to find less than clear on this matter?

At the crime of repeating myself, I have been reading "Perl From the
Ground Up" and "Teach Yourself Perl in 21 Days" and did not see any
examples of discussion of how to get the number of items in a hash in
their sections on hashes. I hope you can find it in your heart to
forgive me for not looking at FAQ4, where the answer is most easily
found.
>
> --tom
> --
> If you can stick your finger in it, you can hang from it.  --Andrew
Hume
>


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


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

Date: Sat, 15 May 1999 11:40:28 GMT
From: armchair@my-dejanews.com
Subject: Re: Hash arrays
Message-Id: <7hjmfd$tof$1@nnrp1.deja.com>

In article <ylwvya6ddk.fsf@windlord.stanford.edu>,
  Russ Allbery <rra@stanford.edu> wrote:
> armchair <armchair@my-dejanews.com> writes:
>
> > Thanks. It seems a bit much, as all I really want to do is check to
see
> > if the hash has elements:
>
> Then test that.  "if (%hash)".

I believe I thanked you elsewhere for this tidbit.

>
> > Do they have a place to post requested enhancements to Perl?
>
> It's usually better to learn Perl first.

I would definitely have to study real hard  and long to find out that a
hash name inside an if test returns 0 if the has is empty.

So you want a 20 year word processor user telling Corel how to make
WordPerfect easier to use and not someone trying it for the first time?
And who was it that said that the Emperor wore no clothes?


> --
> #!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
> $^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD
gD,
>  00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.),
01,pnn,y{
> rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/
#y,d,s,(\$.),$1,gee,print
>


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


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

Date: Sat, 15 May 1999 11:48:55 GMT
From: armchair@my-dejanews.com
Subject: Re: Hash arrays
Message-Id: <7hjmv7$u21$1@nnrp1.deja.com>

In article <slrn7jpvba.871.sholden@pgrad.cs.usyd.edu.au>,
  sholden@cs.usyd.edu.au wrote:
> On Sat, 15 May 1999 04:04:02 GMT, armchair@my-dejanews.com wrote:
> >In article <slrn7jo31p.hn5.sholden@pgrad.cs.usyd.edu.au>,
> >  sholden@cs.usyd.edu.au wrote:
> >> On Fri, 14 May 1999 11:17:11 GMT, armchair@my-dejanews.com wrote:
> >> >How do I find out the number of elements in a hash array?
> >>
> >> A hash isn't an array...
> >>
> >> $number_elements = keys %hash; #
> >
> >
> >Thanks. It seems a bit much, as all I really want to do is check to
see
> >if the hash has elements:
> >
> >$num_elements = entries(%hash);
>
> So write it, it;s a one line sub. Of course it will be slower since
you'll
> actually convert the hash into an array.
>
> Why is it hard to type keys instead of entries. It's shorter even ;).
> The documentation says that is how you count the elements in a hash.
Just
> read keys as entries if you must.
>
> How you could see that as a bit much I fail to understand. It's
documented.
> It's consistant with the rest of perl. You don't even have to search
the docs
> for this entries function of yours. You just use the basics of perl.

As long as $num_elements = keys(%hash) doesn't create a temporary
intermediate array, I guess I am happy, as that syntax is no more
confusing than $num_elements = @array;

>
> >
> >Do they have a place to post enhancements to Perl?
>
> Hopefully you don't find it.

Aha! So it does exist!!!
>
> --
> Sam
>
> Computers in the future may weigh no more than 1.5 tons.
> 	--Popular Mechanics, 1949
>


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


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

Date: Sat, 15 May 1999 06:30:54 -0500
From: rlb@intrinsix.ca (Lee)
Subject: Re: how to fix file permission mistakes
Message-Id: <B362C51E96687346E9@0.0.0.0>

In article <19990514234336.22842.00000872@ng-fv1.aol.com>,
bluesrift@aol.com (BLUESRIFT) wrote:

>if (unlink("$datadir/1.txt")) {print "deleted\n";}
>else {print "not deleted\n";}

else {print "not deleted. $!\n";}

will tell you why it wasn't deleted. Good place to start.

Lee




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

Date: Sat, 15 May 1999 11:01:23 GMT
From: andrew-johnson@home.com (Andrew Johnson)
Subject: Re: Perl "constructors"
Message-Id: <7uc%2.10345$L4.363390@news2.rdc1.on.home.com>

In article <7hjfeg$pl9$1@nnrp1.deja.com>,
 armchair@my-dejanews.com <armchair@my-dejanews.com> wrote:
! In article <ylzp366dm2.fsf@windlord.stanford.edu>,
!   Russ Allbery <rra@stanford.edu> wrote:

[snip]

! > > I don't think it is too much to ask for a function, a complement to
! > > "exists" if you will, that tells how many items are in a hash.
! >
! > What, like $count = keys %hash?
! 
! Very expensive, not intuitive. What is the hash has 2000 items. Create
! a matching array just to get a count of them?

What makes you think that is what perl is doing? Just because keys()
returns a list in a list context doesn't mean that in scalar context
is has to build the list and then count the items. How do you know
perl doesn't maintain the number of keys in a special slot called
xhv_keys somewhere in its HV hash stucture and simply returns that
when keys() is used in scalar context? Did you run timing
tests to see if scalar keys() showed degraded performance
with larger hashes? did you run similar memory tests? did you look
at the source code?

regards
andrew



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

Date: Sat, 15 May 1999 10:57:34 GMT
From: armchair@my-dejanews.com
Subject: Re: Perl "constructors"
Message-Id: <7hjjuu$sbm$1@nnrp1.deja.com>

In article <373cecaa@cs.colorado.edu>,
  tchrist@mox.perl.com (Tom Christiansen) wrote:
>  [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc, armchair@my-dejanews.com writes:
> :Some fellow has later bragged that
> :he doesn't always use new().
>
> Of course not.  It's the wrong thing to do.  You use what makes sense
> for the problem domain in general.

If Perl doesn't enforce a name for a constructor, due to it's
"libertarian attitude" that allows the programmer to do what they
think is right, then you are commiting heresy by suggesting that
anyone's naming of a constructor is wrong.

>
> :But there is the lack of a record construct in
> :Perl.
>
> You're confused.  The %hash is Perl's record construct.

You are saying that a hash can be used to approximate a record in Perl.
And it can in many ways,  but one never has to do exists() on record
variables.

> :And I am certain we
> :can both lift our glasses in concert and agree that one variable
should
> :never be able to hold both a number or a string or a reference.
>
> You have deeply misunderstood virtually everything about Perl.  Please
> go flagellate yourself with something more appropriate, like Pascal.
> You're not ready for Perl yet.

Not to worry, when you have reached the level of deep misunderstanding
that I have, you feel no pain from any programming language.

>
> --tom
> --
> "A momentary lapse of stupidity" -- Dean Roehrich
>


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


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

Date: Sat, 15 May 1999 11:00:51 GMT
From: armchair@my-dejanews.com
Subject: Re: Perl "constructors"
Message-Id: <7hjk52$sd8$1@nnrp1.deja.com>

In article <ylk8ub6k7p.fsf@windlord.stanford.edu>,
  Russ Allbery <rra@stanford.edu> wrote:
> armchair <armchair@my-dejanews.com> writes:
>

> record.field is exactly two fewer characters than $record{field}.  I
don't
> find this a tremendous hardship.  So no, we don't see eye to eye about
> that; I don't consider it an oversight in the slightest.

What is your opinion of the dual use of {} in variable context - either
to specify a member of a hash, or to dereference a reference? This leads
to confusion in my opinion. There are already two other ways to
dereference a reference.

>
> --
> #!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
> $^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD
gD,
>  00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.),
01,pnn,y{
> rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/
#y,d,s,(\$.),$1,gee,print
>


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


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

Date: 15 May 1999 05:44:07 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl "constructors"
Message-Id: <373d5e07@cs.colorado.edu>


In comp.lang.perl.misc, armchair@my-dejanews.com writes:
:What is your opinion of the dual use of {} in variable context - either
:to specify a member of a hash, or to dereference a reference? This leads
:to confusion in my opinion. There are already two other ways to
:dereference a reference.

It is the destiny of small minds to shrink.

--tom
-- 
    "Don't wear rollerskates to a tug-of-war." --Larry Wall


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

Date: 15 May 1999 05:46:44 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl "constructors"
Message-Id: <373d5ea4@cs.colorado.edu>

In comp.lang.perl.misc, armchair@my-dejanews.com writes:
:> You're confused.  The %hash is Perl's record construct.
:
:You are saying that a hash can be used to approximate a record in Perl.

I did not.  The word "approximate" never left my lips.  Call
a spade a spade.  The has *is* perl's implementation of a record.
It is not an approximation.  Please remove the C++ pole from your
posterior.  It's starting to poke up into your brain.

--tom
-- 
    "You can't have filenames longer than 14 chars.  
     You can't even think about them!"
        --Larry Wall in Configure from the perl distribution


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

Date: 15 May 1999 05:51:53 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl "constructors"
Message-Id: <373d5fd9@cs.colorado.edu>

In comp.lang.perl.misc, armchair@my-dejanews.com writes:
:You cannot connect() with a
:constructor and get a status code back from the connect() - you get a
:reference to the object just created whether your connection has been
:successful or not. This problem exists in C++ as well.

You're wrong.  That's not the way it works in Perl.

:So in effect, Perl has a capability to "overload" a classes constructors
:then, I take it.

No, that's not it.  Again you fail to understand.

:What is the most classes that a module could implement? What is the most
:packages that a module could define?

There is such limit.

:> :In any event, you can't get around the fact that
:> :constructors return a blessed reference.
:> Oh, good.  You're wrong again.  I most certainly can.
:Well, let's see some code my good man.

    sub fred { "barney" } 

:Well, to be correct functions that fail should actually throw
:exceptions, but that is not available in Perl, so returning an error
:code, and checking it, is the way to go if you want "robust" code.

You're wrong again.   Perl has exceptions.  You have no clue.

I've had enough.

    He who knows not and knows not he knows not, 
	he is a fool - shut him.
    He who knows not and knows he knows not, 
	he is a child - teach him.
    He who knows and knows not he knows, 
	he is aleep - wake him.
    He who knows and knows he knows, 
	he is a teacher - heed him.

You sir, being of the formermost variety, are doomed to 
being <plonked>.   Get your head out of C++ and learn
Perl for Perl.  Actually, I take that back.  Get out of
Perl.  Your congenital (or conC++) brain damage will
always preclude understanding.  Please go torture some
other programming langauge.  You will never understand Perl.

--tom
-- 
    char program[1];        /* Unwarranted chumminess with compiler. */
            --Larry Wall in the Perl source code
    (quoting Henry Spencer (quoting Dennis Ritchie (quoting Brian Kerninghan)))


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

Date: 15 May 1999 05:52:28 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl "constructors"
Message-Id: <373d5ffc@cs.colorado.edu>

In comp.lang.perl.misc, armchair@my-dejanews.com writes:
:In article <ylzp366dm2.fsf@windlord.stanford.edu>,
:  Russ Allbery <rra@stanford.edu> wrote:
:> armchair <armchair@my-dejanews.com> writes:
:>
:> > I can speak to this: connect() and prepare() should be member
YOUR BROKEN EXCUSE FOR A NEWSREADER MISWRAPPED THIS:
:functions  
:> > and not constructors as a member function can return a status code
YOUR BROKEN EXCUSE FOR A NEWSREADER MISWRAPPED THIS:
:of
:> > success or various error codes. A constructor cannot.
:>
:> Constructors certainly can return various error codes, as well as
YOUR BROKEN EXCUSE FOR A NEWSREADER MISWRAPPED THIS:
:success
:> or failure.
:
:And what does your code look like?

You already posted this.  Was there some reason you thought
we needed to see it again, or are you merely as incompetent
at using software as you are at reading documentation?

:my $reference = myclass->new();
:if ( $reference == 0 )

No, that's wrong.  Don't test for 0.  

if ($value) suffices for truth, and 
unless ($value) for falsehood.  This == 0 business
is brain-damange.

:{
:  print "constructor failed\n";
:}
:
:Correct?

No, you should probably be raising an exception.  
printing to stdout is silly.

:In C++ and Java, but not in Perl. Does it have them, and if so which
:perl HTML page section are they documented in?

% man perlfunc

:> What, like $count = keys %hash?
:
:Very expensive, not intuitive. 

Liar.  Twice.

:Asumming I just want to test emptiness. Thanks, just tried it, and it
:worked, but I do have one comment - non-intuitive, non-lookupable,
:obtuse.

Thrice.

--tom
-- 
"Make is like Pascal: everybody likes it, so they go in and change it. "
	    --Dennis Ritchie


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

Date: 15 May 1999 11:25:54 GMT
From: "K.Posern" <posern@informatik.uni-marburg.de>
Subject: Q: regexpr - WHY???? - HELP!!!
Message-Id: <373D7633.B5BB7DEB@informatik.uni-marburg.de>

Hi.

I don't believe it's "perls-fault" but I DON'T FIND THE ERROR - so
PLEASE HELP ME.

Here is the code:

while ("bla_HQD___blub_MEDICIN" =~
/(H)([^\1])([^\1\2])([^\1\2\3])([^\1\2\3\4])\4([^\1\2\3\4\5])/g) {
     print "MATCH='$&'\n"
     print "1=$1, 2=$2, 3=$3, 4=$4, 5=$5, 6=$6.\n";
}

^^^^^^^^^^^^^^^^

And here is the output:

MATCH='HQD___b'
1=H, 2=Q, 3=D, 4=_, 5=_, 6=b.

BUT WHY does he match this String???

I expect, he shouldn't (!!), he should find a string,
    - that Begins with an "H",   =(H)
    - that goes on with an character R different from the first char
"H",   =([^\1])
    - that goes on with an character S different from the first two
chars ("H" & X),   =([^\1\2])
    - that goes on with an character T different from the first three
chars ("H" & X & Y),   =([^\1\2\3])
    - that goes on with an character U _DIFFERENT_ from the first four
chars ("H" & X & Y & Z),  =([^\1\2\3\4])
    - that goes on with the fourth character,    =(\4)
    - that goes on with an character V different from the first five
chars ("H" & R & S & T & U & V), =([^\1\2\3\4\5])

It would be GREAT, if someone could tell me, WHY the regular expression
not does, what I expect
AND HOW the regular expression should look like instead of.

Ciao,

Knuth.




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

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

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