I understand that the following script would print out line(s) separated by '--' (2 dashes), but how can I use it when there are many '-' (dashes). Many thanks in advance.
{
local $/ = "--\n";
while (<>) {
chomp;
print;
}
}
I understand that the following script would print out line(s) separated by '--' (2 dashes), but how can I use it when there are many '-' (dashes). Many thanks in advance.
{
local $/ = "--\n";
while (<>) {
chomp;
print;
}
}