File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env perl
2
2
# Copyright (c) 2018 cxw42. All rights reserved. Artistic 2.
3
- # XML::Axk: Stub package that loads XML::Axk::Core and XML::Axk::Core.
3
+ # XML::Axk: Stub package that just holds the version
4
4
5
5
package XML::Axk ;
6
6
use XML::Axk::Base; # uses 5.018, so we can safely use v-strings.
7
- use XML::Axk::Core v0.1.0;
8
- use XML::Axk::App v0.1.0;
9
- use Import::Into;
10
7
11
8
use version 0.77; our $VERSION = version-> declare(" v0.1_2" );
12
9
# underscore before last component => alpha version
13
10
14
- sub import {
15
- XML::Axk::Core-> import ::into(1);
16
- XML::Axk::App-> import ::into(1);
17
- }
18
-
19
11
1;
20
12
__END__
21
13
# === Documentation ===================================================== {{{1
@@ -30,7 +22,8 @@ XML::Axk - ack-like XML processor
30
22
31
23
=head1 USAGE
32
24
33
- use XML::Axk;
25
+ use XML::Axk::App; # pick whichever you want,
26
+ use XML::Axk::Core; # or both
34
27
35
28
# Canned interface, as if run from the command line
36
29
XML::Axk::App::Main(\@ARGV)
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ sub Main {
136
136
parse_command_line(from => $lrArgs , into => \%opts );
137
137
138
138
if ($opts {PRINT_VERSION }) {
139
- say " axk $VERSION " ;
139
+ use XML::Axk;
140
+ say " axk $XML::Axk::VERSION " ;
140
141
return 0;
141
142
}
142
143
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use Import::Into;
8
8
9
9
# Pragmas
10
10
use 5.018;
11
- use feature " :5.18" ;
11
+ use feature " :5.18" ; # Use expressly so we can re-export it below
12
12
use strict;
13
13
use warnings;
14
14
Original file line number Diff line number Diff line change 2
2
use 5.018;
3
3
use strict;
4
4
use warnings;
5
- use Test::More tests => 3 ;
5
+ use Test::More tests => 5 ;
6
6
use Module::Loaded;
7
7
8
8
BEGIN {
9
- use_ok( ' XML::Axk' ) || print " Bail out!\n " ;
9
+ use_ok( ' XML::Axk' ) || print " Could not load main\n " ;
10
+ use_ok( ' XML::Axk::App' ) || print " Could not load App\n " ;
11
+ use_ok( ' XML::Axk::Core' ) || print " Could not load Core\n " ;
10
12
}
11
13
12
14
diag( " Testing XML::Axk $XML::Axk::VERSION , Perl $] , $^X" );
You can’t perform that action at this time.
0 commit comments