The stupid question is the question not asked | |
PerlMonks |
Re: substr Rampageby Sidhekin (Priest) |
on Sep 17, 2007 at 09:41 UTC ( [id://639371]=note: print w/replies, xml ) | Need Help?? |
substr($record, $FifthCollumEnds, $SixthCollumEnds-1); Without reading your code, it looks like you are misunderstanding the substr syntax. The third argument is supposed to be length, but what you are passing looks like an end offset. If I read that right, you might try:
Still looks like an off-by-one error waiting to happen though.
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|