Re: Sort::Maker: style => 'plain' difficulty



On 12/14/2006 03:35 AM, Mumia W. (on aioe) wrote:
I'm having trouble getting this program to work:

-----------code---------
#!/usr/bin/perl

use strict;
use warnings;
use Sort::Maker qw(make_sorter sorter_source);

my $sorter = make_sorter (
style => 'plain',
string => '$_',
);

die($@) unless $sorter;

print sorter_source($sorter);
-----------end----------

The response is this:
----------output---------
make_sorter: Unknown option or key 'style'
----------end------------

I tried this in two different accounts. Sort::Maker was downloaded from CPAN. Does this work for other people? Could my system be this totally messed up?

I'm using Perl 5.8.4 and Sort::Maker 0.05 on Debian 3.1.


When I make the following change to Sort/Maker.pm, the program works:

----------------patch------------------
*** Maker.src Wed Dec 6 06:27:46 2006
--- Maker.pm Thu Dec 14 05:04:30 2006
***************
*** 72,77 ****
--- 72,78 ----
my @value_args = qw(
name
init_code
+ style
) ;

# all the attributes can be set with defaults
-----------------end-------------------


.



Relevant Pages