in reply to Re^2: Making a variable from a number in front of a string
in thread Making a variable from a number in front of a string

Maybe we didn't give you a crystal clear reply. First, the program should run using the data segment. Then take the data after __DATA__ and put that into "somefile". In the program, you need to add at the beginning,

open FILE, '<', "somefile" or die "unable to open file $!";
Now put FILE everywhere that DATA appears in the program. You will now be reading "somefile" on the disk instead of the __DATA__ section.