use strict; use warnings; use XML::Twig qw( ); binmode STDOUT; my $t = XML::Twig->new( twig_handlers => { 'image[@scope="local"]' => sub { $_->del_att('scope'); }, }, ); $t->parsefile($ARGV[0]); $t->flush();
In reply to Re^2: Search and replace again
by ikegami
in thread Search and replace again
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |