App-Addex
view release on metacpan or search on metacpan
lib/App/Addex/Output/Mutt.pm view on Meta::CPAN
#pod
#pod unidecode - if set (to 1) this will transliterate all aliases to ascii before
#pod adding them to the file
#pod
#pod =cut
sub new {
my ($class, $arg) = @_;
$arg ||= {};
my $self = $class->SUPER::new($arg);
$self->{unidecode} = $arg->{unidecode};
return $self;
}
#pod =method process_entry
#pod
#pod $mutt_outputter->process_entry($addex, $entry);
#pod
lib/App/Addex/Output/ToFile.pm view on Meta::CPAN
#pod
#pod filename - the file to which to write configuration (required)
#pod
#pod =cut
sub new {
my ($class, $arg) = @_;
Carp::croak "no filename argument given for $class" unless $arg->{filename};
my $self = $class->SUPER::new;
open my $fh, '>', $arg->{filename}
or Carp::croak "couldn't open output file $arg->{filename}: $!";
binmode($fh, ':encoding(utf8)');
$self->{fh} = $fh;
return $self;
}
( run in 1.061 second using v1.01-cache-2.11-cpan-49f99fa48dc )