SomeDude wrote:
>
> Thanks for your answers guys.
> Just a note: don't go assuming a newbie hasn't read.
That is the only possible assumption when "a newbie" gives no
indication otherwise.
> The semantics of the while loop and filehandles is not trivial (eg., when
> implicit atribution happens to global $_) and I lost a good chunk of my
> afternoon in the Camel book trying to understand and test some things.
>
> Please look up DATA in the Camel book and check what page
> it is on.
Okay. Let's see, the index of my Camel book points has an entry "DATA
filehandle" which points me to the page on special variables, which
says:
DATA
[PKG] This special filehandle refers to anything following either
the __END__ token or the __DATA__ token in the current file. The
__END__ token always opens the main:

ATA filehandle, and so is used in
the main program. The __DATA__ token opens the DATA handle in whichever
package is in effect at the time, so different modules can each have
their own DATA filehandle, since they (presumably) have different
package names.
> You can't expect a newbie to know that.
I beg to differ.
> If you expect that
> messages to be posted with data "in place" then don't complain to newbies,
> modify the Posting Guidelines, where no recommendation to <DATA> and
> __DATA__ can be found.
Ahem. You are either mistaken or outright lying. Go read the Posting
Guidelines again.
Tad McClellan wrote (hundreds of times) :
> Describe *precisely* the input to your program. Also provide example
> input data for your program. If you need to show file input, use the
> __DATA__ token (perldata.pod) to provide the file contents inside of
> your Perl program.
It tells you what to do, and gives you the pointer to precisely where
__DATA__ is described.
> Those are on Chapter 10 of a very thick Perl book
> (Ed Peschko's).
Never heard of him. Perhaps you need a better book. And why are you
talking about this book when you just asked us to go look it up in the
Camel?
> http://groups.google.de/group/comp.l...5d6f2ea37a3190
>
> Yes, the regex code was pasted from the Cookbook, that's what it's for,
No, it's really not. It's for helping you understand how to make your
own Perl programs. It is not for blind copy and pastes.
This was an excellent way to get yourself plonked by many of the most
knowledgeable and helpful people in this newsgroup, by the way. Your
response was a very unfortunate choice to have made. The correct
response was "Oh, I'm sorry, I'll go re-read the Posting Guidelines and
fix my posts in the future."
Fare thee well,
Paul Lalli