File: xmlxpath_tools.pm

package info (click to toggle)
libxml-twig-perl 1%3A3.52-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,952 kB
  • sloc: perl: 21,221; xml: 423; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use Config;

BEGIN 
  { if( eval( 'require XML::Twig::XPath'))
      { import XML::Twig::XPath; }
    elsif( $@ =~ m{^cannot use XML::Twig::XPath})
      { print "1..1\nok 1\n"; $@=~s{ at.*}{}s; warn "$@\n";
        exit;
      }
    else
      { die $@; }
  }

1;

__END__

=head1 SYNOPSYS

use FindBin qw($Bin); BEGIN { unshift @INC, $Bin; } use xmlxpath_tools;