Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: substr in nested foreach loop

by Jasper (Chaplain)
on May 23, 2006 at 08:50 UTC ( #551101=note: print w/ replies, xml ) Need Help??

in reply to Re^2: substr in nested foreach loop
in thread substr in nested foreach loop

Yeah but no but yeah.

If you stick a warning before each substr operation giving the length of the string and which characters it's trying to find, I bet you'll trace the problem pretty quickly.

Comment on Re^3: substr in nested foreach loop
Replies are listed 'Best First'.
Figured it out...
by sarani (Sexton) on May 23, 2006 at 09:19 UTC
    Jasper: Yeah, I got it. *sheepish grin* End of line char at the end of file. Thanks. :)

    Oh, and a couple of places where the file formatting was irregualr because of overwriting. *feels dumb*

    On the positive side, I've learnt more in the time it took me to read this thread and attempt to implement all of the suggestions (I did) than I did while trying to debug all by myself...So I owe all the Monks who were kind enough to reply a huge thanks.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-11-30 11:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls