B
Bob Smith
how do I get the string length of a string?
/B
/B
how do I get the string length of a string?
/B
Now, is that a nice thing to do to a newbie, Abigail?Abigail said:Bob Smith ([email protected]) wrote on MMMDCLXXIV September MCMXCIII in
<URL:'' how do I get the string length of a string?
That's why Perl has the handy chop function!
$str = "I want to know the length";
$length = 0;
while ($str ne "") {
$tmp = $length + 1;
chop $str;
$length = $tmp;
}
Bob said:how do I get the string length of a string?
Purl said:Barry said:[This followup was posted to comp.lang.perl.misc]
I am curious why you add this to your articles.
Reading your article in this newsgroup, is indicative
of your article being posted in this newsgroup, yes?
Purl Gurl
Chris said:Now, is that a nice thing to do to a newbie, Abigail?
Chris Mattern
Trent said:I don't think there was any reason to do that at all. It's just confusing a
new person even more and could just result in him coming back whining about
why the code isn't working.
Even newbies should have read the FAQ, and thus know how to read theIf you don't like newbie questions why respond
to them?
perldoc -f length
Purl said:(snipped)
My article is posted to comp.lang.perl.misc which is
this newsgroup, for those not sure where they are.
[This followup was posted to comp.lang.perl.misc]
I am curious why you add this to your articles.
Reading your article in this newsgroup, is indicative
of your article being posted in this newsgroup, yes?
How is that off topic?
I find no references to "off topic" within this thread.
Perhaps an article has not shown up on my news server
which makes mention of "off topic."
Chris said:Not work? What in the above code does not work? It's horribly ugly
and incredibly ludicrous, but it does *work* (it does destroy the
source string, but then the original poster never said he needed it
preserved...).
Even newbies should have read the FAQ, and thus know how to read the
basic documentation. That may have been a bit harsh, though.
Abigail said:Chris Mattern ([email protected]) wrote on MMMDCLXXIV September MCMXCIII
Well, I'd considered roasting him over a fire, and feeding him to
my dog, but my dog doesn't like Bobs. (The dog is a sysadmin).
True, it working in the sense of being able to compile and run, but it
doesn't work in any way the the op would expect, espially being a beginning,
ehich if you ask me, is just a mean thing to do and serves no one.
Of course. But what most of the experts don't take into account that newbies
may not even know such FAQs exist. Pointing out sources for them is one
thing, giving code that only serves to confuse them is another.
Bob Smith said:how do I get the string length of a string?
/B
Bob Smith ([email protected]) wrote on MMMDCLXXIV September MCMXCIII in
<URL:'' how do I get the string length of a string?
That's why Perl has the handy chop function!
Trent Curry said:True, it working in the sense of being able to compile and run, but it
doesn't work in any way the the op would expect, espially being a beginning,
ehich if you ask me, is just a mean thing to do and serves no one.
Of course. But what most of the experts don't take into account that newbies
may not even know such FAQs exist. Pointing out sources for them is one
thing, giving code that only serves to confuse them is another.
Abigail said:But more than lazy people, I hate whiners who whine if you don't
want to kiss up to people.
*PLONK*
Then you miss understand me and proceed to a false conclusion of my intent.
I was not trying to be anyone's lawyer. Actually I was poking fun at
Abigail's "rosting over a fire" gag in my last reply. I was not in any way
trying to motivate "kissing up" to anyone.
I'm sorry, but what real gain is there from publically announcing additions
to one's kill file?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.