use warnings; use strict; # my attempt at reading the data using and printing # the output as I want it __DATA__ - Some words here - some other words on this line - you get the idea # Result should look like this: 'SOME WORDS HERE'/ 'SOME OTHER WORDS ON THIS LINE'/ 'YOU GET THE IDEA'