Do you know where your variables are? | |
PerlMonks |
Re: substr and strings on the outsideby JPaul (Hermit) |
on Aug 20, 2001 at 02:10 UTC ( [id://106090]=note: 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 Section
Seekers of Perl Wisdom
|
|