Hello Pharazon,
It would help if you provided a sample of the input file, together with the output you are getting. At the least, you should specify the exact form of the warning message.
In the meanwhile, I’m guessing that the problem arises in this expression: substr($_, 57, 14) when the string in $_ is less than 57 characters long. If so, you can remove the warning by adding a test along these lines:
my $temp = substr($_, 0, 56) . $sp x 26; $temp .= substr($_, 57, 14) if length >= 57; $RECORD[$det_line] = $sp x 4 . ltrim($temp);
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Undef and Uninitialized Issue
by Athanasius
in thread Undef and Unitialized Issue
by Pharazon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |