-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 24 Sep 2003 12:02:32 -0500, Eric J. Roode wrote:
There are *no* stupid questions, only stupid answers
Just because the operation he wants to do and the perl operator to do
it happen, in this instance, to be the same word, does not make it a
stupid question. What if he had said "chop" the data up? It is only
"stupid" in that *the perl experts* know there is a function called
split and *the newbie* does not. So to the experts it is a funny in
joke. If he knew he would not have asked. I hope
....
Cut the guy a little slack - we all were beginners once and hopefully
we never stop learning. Don't forget that to the newbie a FAQ isn't -
it is something he does not understand or know how to do. It is only a
FAQ to the rest of us. Be gentle and they will most likely find it
themselves next time. Now if they *keep* coming back with essentially
the same type of question - that is an entirely different matter and
they need jumping on.
Let me make one thing clear: When I opined that it was a stupid
question, that was not the voice of an elitist Perl snob degrading a
newbie. Yeah, I'm a freakin' expert in Perl (and yes, with elitist snob
leanings! ;-) ), but I am a newbie in other areas, and I participate in
newsgroups in which I am a newbie as well as newsgroups in which I am an
expert, and have for many years.
If you search Google for posts I've made in c.l.p.m., you will find that
I do quite frequently answer questions that are clearly posted by
novices, and I do so in a polite, non-condescending manner.
The OP's question:
# I have a variable which is set to "A..A_B..B_C..C_D..D_123456"
# I would like to split this into fields using the "_" as a field
# delimeter (easy in awk and ksh)
#
# Is there a way to do this in perl ? is there an equiv to the
# awk "-F_" ?
is not merely a pair of questions from a novice. It is a pair of
questions from a novice who clearly has not bothered to do the slightest
bit of research -- either on the web, newsgroup archives, any Perl book
at any bookstore or library, NOTHING.
It is reasonable to suppose that this is a person who has little interest
in self-improvement, just easy answers. I see nothing morally wrong with
flaming such a person -- discouraging such people from posting does
marginally improve the average article quality on c.l.p.m.
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBP3JDKmPeouIeTNHoEQIjIQCgyKF4uLr6Vb0TPvthr8isHOqYhZYAn1+k
WegEnu4nrbJi/AO0cFyTDSiy
=mv4M
-----END PGP SIGNATURE-----