1: 2: 3: 4: 5: 6:
magazine 2 My Title Some text which can be multiple lines long and could contain any characters!@#$%^&*(*&^%$#
1: 2: 3: 4: 5: 6: 7: 8:
sub custom_file_parse{ my $file = shift; open(INFILE, "<$file") or die $!; my ($template, $ID, $title, @arr) = <INFILE>; close(INFILE) or die $!; my $text = join("", @arr); return ($template, $ID, $title, $text); }