You need to select the bill number for $currBill. Your current regex match patterns don't include capture brackets so there is no meaningfull value in $1. Try something like these:
if (/^1010100.{17}(.{13})/) { } elsif (/^3010330.{17}(.{13})/) {
In reply to Re^5: split file
by GrandFather
in thread split file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |