in reply to Re^4: split file
in thread split file

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})/) {

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^6: split file
by Anonymous Monk on Feb 14, 2006 at 20:18 UTC
    That doesn't seem to work for me. It outputs the original file as before. Also, what does the . represent? I'm not too good with regular expressions.

    Thanks.