#!/usr/bin/perl use strict; use warnings; #829607 =head The idea was to get two lines like: foo, bar, =cut my $string = ""; while ($string =~ m/(.*?)<\/name>/g) { print "$1, $2\n"; } #### ww@GIG:~/pl_test$ perl 829607.pl foo, bar, ww@GIG:~/pl_test$
## ww@GIG:~/pl_test$ perl 829607.pl foo, bar, ww@GIG:~/pl_test$