"be consistent" | |
PerlMonks |
Re: Replacing Text At Specific Positionsby FunkyMonk (Chancellor) |
on Jun 05, 2007 at 15:49 UTC ( [id://619428]=note: print w/replies, xml ) | Need Help?? |
I'm confused by "I cannot get any "foreach" statement to function correctly". Do you mean you want to replace
with foreach? If that is the case, there's no need for foreach, just replace those two lines with:
Did you know that substr can take a 4th argument?
It doesn't look like you're using strict and warnings. They are real timesavers and you should look in to using them.
In Section
Seekers of Perl Wisdom
|
|