I'll make a guess on what you really mean:
At first, you have probably a text input file input.txt w/following content:
google.com/test
yahoo.com/test
##############
somethingelse.com/test
##############
12345
Now, you are trying to separate records from the file, delimited by 14 '#'s. Therefore, you could just read the file with ############## as the input record separator and be done:
...
my $fn = 'input.txt'; # set the file name
open my $fh, '<', $fn or die $!; # open the file
$/="\n##############\n"; # set the input record separator
my @parts = <$fh>; # read the file record-wise
chomp @parts; # remove the record separator from data
close $fh # close the file
...
The elements of @parts now have the following content:
$parts[0]
google.com/test
yahoo.com/test
$parts[1]
somethingelse.com/test
$parts[2]
12345
If you need to look for #-separators of different size, you might achieve this in a very similar way by slurping the file in one read operation and splitting at the separators afterwards:
...
my $fn = 'input.txt';
open my $fh, '<', $fn or die $!;
undef $/; # remove the input record separator
my @parts = split /\n#+\n/, <$fh>; # read file as a block and split
close $fh;
...
with the same result.
Regards
rbo