tags:

views:

44

answers:

1

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;
   }
}
+7  A: 
mobrule
No self-rolling needed, we already have [`Data::Record`](http://p3rl.org/Data::Record).
daxim