Re: Sort::Maker: style => 'plain' difficulty
- From: "Mumia W. (on aioe)" <paduille.4060.mumia.w@xxxxxxxxxxxxx>
- Date: Thu, 14 Dec 2006 05:09:35 -0600
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-------------------
.
- Follow-Ups:
- Re: Sort::Maker: style => 'plain' difficulty
- From: Uri Guttman
- Re: Sort::Maker: style => 'plain' difficulty
- References:
- Sort::Maker: style => 'plain' difficulty
- From: Mumia W. (on aioe)
- Sort::Maker: style => 'plain' difficulty
- Prev by Date: Sort::Maker: style => 'plain' difficulty
- Next by Date: Sort::Maker: (Notes) The plain and the orcish don't include the "init_code"
- Previous by thread: Sort::Maker: style => 'plain' difficulty
- Next by thread: Re: Sort::Maker: style => 'plain' difficulty
- Index(es):
Relevant Pages
|
|