J
Jang
Hi, Experts!
I just wrote short Perl script aiming at the processes below
step 1) read "20.xml" in my C:\perl folder
step 2) extract links in "20.xml"
e.g. extracting "Link A, B, C,..." from 20.xml
<permalink> Link A </permalink>
....
<permalink> Link B </permalink>
....
<permalink> Link C </permalink>
....
step 3) save links at "20.txt"
Below is what I have written until now. I'm lost what line should be
added, what should be corrected...
=================================================
#!/usr/bin/perl -w
use strict;
use LWP::Simple;
use XML::TokeParser;
use XML::Simple;
my $t;
my $cont = get("20.xml");
my $p = new XML::TokeParser(\$cont);
$t = $p->get_tag("permalink");
$t = $p->get_trimmed_text("/permalink");
getstore($t, "20.txt");
=====================================================
Thank you for your help!
Jang.
I just wrote short Perl script aiming at the processes below
step 1) read "20.xml" in my C:\perl folder
step 2) extract links in "20.xml"
e.g. extracting "Link A, B, C,..." from 20.xml
<permalink> Link A </permalink>
....
<permalink> Link B </permalink>
....
<permalink> Link C </permalink>
....
step 3) save links at "20.txt"
Below is what I have written until now. I'm lost what line should be
added, what should be corrected...
=================================================
#!/usr/bin/perl -w
use strict;
use LWP::Simple;
use XML::TokeParser;
use XML::Simple;
my $t;
my $cont = get("20.xml");
my $p = new XML::TokeParser(\$cont);
$t = $p->get_tag("permalink");
$t = $p->get_trimmed_text("/permalink");
getstore($t, "20.txt");
=====================================================
Thank you for your help!
Jang.