11# ! perl
22
3- #  Parser.pm -- Getopt::Long object  oriented interface
3+ #  Parser.pm -- Getopt::Long object- oriented interface
44#  Author          : Johan Vromans
55#  Created On      : Thu Nov  9 10:37:00 2023
6- #  Last Modified On: Sat Nov  11 17:48:49 2023 
7- #  Update Count    : 13 
6+ #  Last Modified On: Tue Jun  11 13: 17:57 2024 
7+ #  Update Count    : 16 
88#  Status          : Released
99
10+ use  strict;
11+ use  warnings;
12+ 
1013package  Getopt::Long::Parser ;
1114
12- our  $VERSION  = 2.57;
15+ #  Must match Getopt::Long::VERSION!
16+ our  $VERSION  = 2.58;
1317
1418=head1  NAME 
1519
16- Getopt::Long::Parser - Getopt::Long object  oriented interface 
20+ Getopt::Long::Parser - Getopt::Long object- oriented interface 
1721
1822=head1  SYNOPSIS 
1923
2024    use Getopt::Long::Parser; 
2125    my $p = Getopt::Long::Parser->new; 
22-     $p->configure( ...configuration  options...  ); 
23-     if ( $p->getoptions( ... options descriptions...  ) ) ... 
24-     if ( $p->getoptionsfromarray( \@array, ... options descriptions...  ) ) ... 
26+     $p->configure( % options ); 
27+     if ( $p->getoptions( @ options ) ) {  ... }  
28+     if ( $p->getoptionsfromarray( \@array, @ options ) ) {  ... }  
2529
2630Configuration options can be passed to the constructor: 
2731
28-     my $p = Getopt::Long::Parser->new 
29-              config => [...configuration options...]; 
32+     my $p = Getopt::Long::Parser->new( config => [ %options ] ); 
3033
3134=head1  DESCRIPTION 
3235
33- Getopt::Long::Parser is an object  oriented interface to 
36+ C< Getopt::Long::Parser >   is an object- oriented interface to
3437L<Getopt::Long> . See its documentation for configuration and use.
3538
36- Note that Getopt::Long and Getopt::Long::Parser are not object 
37- oriented. Getopt::Long::Parser emulates an object oriented interface, 
39+ Note that C<Getopt::Long >  and C<Getopt::Long::Parser >  are not 
40+ object-oriented. 
41+ C<Getopt::Long::Parser >  emulates an object-oriented interface,
3842which should be okay for most purposes. 
3943
4044=head1  CONSTRUCTOR 
@@ -93,7 +97,7 @@ use warnings 'redefine';
9397
9498=head1  METHODS 
9599
96- In the examples, $p  is assumed to be the result of a call to the constructor. 
100+ In the examples, C< $p >   is assumed to be the result of a call to the constructor. 
97101
98102=head2  configure 
99103
@@ -116,13 +120,13 @@ sub configure {
116120
117121=head2  getoptionsfromarray 
118122
119-     $res = $p->getoptionsfromarray( $aref, @opts ); 
123+     my  $res = $p->getoptionsfromarray( $aref, @opts ); 
120124
121125=head2  getoptions 
122126
123-     $res = $p->getoptions( @opts ); 
127+     my  $res = $p->getoptions( @opts ); 
124128
125- The same as getoptionsfromarray( \@ARGV, @opts ). 
129+ The same as C< getoptionsfromarray( \@ARGV, @opts ) >  . 
126130
127131=cut 
128132
0 commit comments