Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: What is the difference?

by Abigail-II (Bishop)
on Apr 08, 2003 at 14:38 UTC ( [id://248947]=note: print w/replies, xml ) Need Help??


in reply to Re: What is the difference?
in thread What is the difference?

Well, yeah, += doesn't do that. += doesn't multiple the right hand side with the left hand side either.

You're the second person to assume something needs to be concatenated. Why, I have no idea. split doesn't return a string, it returns a number, and the program is counting things. I see no reason at all to come up with concatenation.

To answer the question, split returns the number of fields. And if you split on [ \t]*, the number of fields isn't necessaryly the same as the number of characters.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://248947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found