my @array; { local $/ = ':'; open INPUT, 'file.txt' or die "blah: $!"; @array = ; close INPUT; }