[From Builder.pm .25]
     A sample preprocessor (taken from DateTime::Format::ICal)
     looks like this:

         my $add_tz = sub {
             my %args = @_;
             my ($date, $p) = @args{qw( input parsed )};
                .
                .
                .

Iain,

I started implementing all of ISO8601:2000 last night with Builder.pm.  After looking 
at the pod for awhile I started thinking that this could be simplified [and optimized] 
a little if you don't mind dirtying the namespace.

Some POEish like this:

my ($date, $p) = @_[ INPUT, PARSED ];

Should achieve the same effect.

Cheers,

-J

--

Reply via email to