open(IN, "filename.txt"); $/ = '/delimiter here/'; while(<>) { }