[libcatmandu-perl] 79/85: Examples in line with recommended syntax

Jonas Smedegaard dr at jones.dk
Tue May 20 09:56:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.91
in repository libcatmandu-perl.

commit 02229f2b2d97a4d188f434c777fcc21ecbbc7a70
Author: Patrick Hochstenbach <Patrick.Hochstenbach at UGent.be>
Date:   Mon May 19 20:08:37 2014 +0200

    Examples in line with recommended syntax
---
 lib/Catmandu/Importer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Catmandu/Importer.pm b/lib/Catmandu/Importer.pm
index 557df30..2e89370 100644
--- a/lib/Catmandu/Importer.pm
+++ b/lib/Catmandu/Importer.pm
@@ -104,7 +104,7 @@ parameter that can be set in the constructor. When given then each item returned
 by the generator will be automatically Fixed using one or more L<Catmandu::Fix>es.
 E.g.
     
-    my $importer = Catmandu::Importer::Hello->new(fix => ['upcase(hello)']);
+    my $importer = Catmandu->importer('Hello',fix => ['upcase(hello)']);
     $importer->each( sub {
         my $item = shift ; # Every item will be upcased... 
     } );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list