perlperlperl has asked for the wisdom of the Perl Monks concerning the following question:
Puzzling.use strict; use warnings; open FILE_IN, '<file.xml'; open FILE_OUT, '>results.txt'; $/ = undef; my $records = <FILE_IN>; my $text = ""; ($text) = $records =~ m/<html>(.*)<\/html>/; print "$text"; close FILE_IN; close FILE_OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: record separator causing problems
by hippo (Archbishop) on Dec 19, 2013 at 09:41 UTC | |
|
Re: record separator causing problems
by Athanasius (Archbishop) on Dec 19, 2013 at 10:32 UTC | |
by jellisii2 (Hermit) on Dec 19, 2013 at 12:45 UTC | |
by hippo (Archbishop) on Dec 19, 2013 at 13:45 UTC | |
|
Re: record separator causing problems
by locked_user sundialsvc4 (Abbot) on Dec 19, 2013 at 16:08 UTC |