Re: Strings vs Arrays



M. Lewis wrote:
I now we can push (concatenate) data onto an array.

I would assume that we could concatenate data on to a string as well
with something like:

$newstring = $oldstring . $newdata

Maybe this isn't correct though. I've not yet tried it.

My question is one method 'better' than the other? If so, why so?

Is a hammer 'better' than a screwdriver?

You sure ask a lot of questions.

-jp

.



Relevant Pages

  • Re: MSComm Newby Question
    ... Should I parse it out as it comes into the buffer one character ... The simple way is to concatenate data in the OnComm event. ... up the string buffer that you use to concatenated data, ...
    (microsoft.public.vb.controls)
  • Semicolon v ampersand as concatenation delimiter with debug.print
    ... The ampersand is a regular operator that will concatenate data of ... various types into a string: ... The semicolon appears to be part of a special syntax used with ...
    (microsoft.public.vb.general.discussion)
  • Strings vs Arrays
    ... I now we can push data onto an array. ... I would assume that we could concatenate data on to a string as well with something like: ...
    (perl.beginners)