in reply to Re: replacing text in specific tags
in thread replacing text in specific tags
now I am using the following code, but no output in temp.out.
open(IN, "<$file_name_xml") || die "\n Can't open file\n $!\n"; open(OUT,">temp.out"); while(<IN>) { my %data = m#<X-REF REFID="([^"]+)">([^<]+)</XREF>#g; s#<FTN ID="([^"]+)">[^<]+</FTN>#<FTN ID="$1">$data{$1}</FTN>#g; print OUT $data; } close(IN); close(OUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replacing text in specific tags
by Abigail-II (Bishop) on Aug 21, 2003 at 10:35 UTC | |
by texuser74 (Monk) on Aug 21, 2003 at 11:04 UTC | |
by CombatSquirrel (Hermit) on Aug 21, 2003 at 12:09 UTC | |
by texuser74 (Monk) on Aug 22, 2003 at 01:15 UTC | |
by CombatSquirrel (Hermit) on Aug 22, 2003 at 11:03 UTC | |
| |
by Abigail-II (Bishop) on Aug 21, 2003 at 11:12 UTC |