in reply to Removing the first record in a file containing fixed records

Note that you can use the standard while (<>) { ... } idiom here:
{ local($/) = \$record_length; my $first_record = <recordline>; $/ = \(512*1024); while (<recordfile>) { print newrecordfile; } }
Alternatively, you can seek() over the first record instead of reading it.