in reply to Re^2: Unsuccessful and Uninitialized Value
in thread Unsuccessful and Uninitialized Value

What's "it"? The file or each line?

If it's one file name per line, then remove local $/ = \$maxsize; and add chomp($record);.

If there can be more than one file name per line, what seperates them?