Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My apologies for being vague,
Imagine a billing statement in text form. There are a number of lines, generally all different lengths before the \n, which I need to alter. For example, a line may be (literally): Now imagine I need to replace the address with a piece of text that is longer than the one in the original text - thusly my will have substr complain 'substr outside string'. What I want perl to do is say "Okay, its longer than the original string was, thats fine, I don't really care. Honest." Hopefully this is clearer
JP In reply to Re: substr and strings on the outside
by JPaul
|
|