in reply to Re: Splitting a string is giving me gaps in my array
in thread Splitting a string is giving me gaps in my array

1) Yes, it does, e.g.
110948691 barbie File: 1 1 9 4 8 6 9 1 1115211490 gerald File: 1 1 1 2 1 1 4 9 0 1118091120 twinkie File: 1 1 1 0 9 1 1 2 0

2) The print line is just my debggung, to make the example easier to read. I am doing a load of stuff with the data, and none of it is coming out!

3) I have always done it that way ;-)

Thanks, Jennifer

Replies are listed 'Best First'.
Re^3: Splitting a string is giving me gaps in my array
by dragonchild (Archbishop) on Jan 07, 2005 at 15:39 UTC
    1. If that is the case, reduce your code and data to the smallest possible example that still demonstrates the problem. At that point, the solution should be obvious.
    2. It looks to me as if your ...... section is modifying @fileid.
    3. Just cause you always did it that way doesn't mean you should continue to do so. If everyone took that attitude, progress would stop cause no-one would ever improve their methods. :-)

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Yeah, I am not touching my array at all, but I'll have to check through every single piece of code between "right" and "wrong" to see where it is happenning. I will certainly take a look at that module, thanks for the tip!