in reply to CPAN module fior common idioms?
How about
sub concatenate{ $_[ 0 ] . $_[ 1 ] }
sub add{ $_[ 0 ] + $_[ 1 ] }
sub loop (&@) { $_[ 0 ]->( $_ ) for @_ }
Ultimately, they can all be ditched in favour of Algorithm::Just.
Synopsis: #!/usr/bin/perl -w use strict; use warnings; use diagnostics; use Data::Dumper; use Fatal; use IO::All; use Parse::RecDescent; use Getopt::Short; use Getopt::Standard; use Getopt::Long; use Config::Standard; use Pod::Usage; use DBI; use Class::DBI; use Class::MethodMaker; use Aspect; use Algorithm::Just; my $config = Config::Standard->new( @ARGS ); my $program = Algorithm::Just->new( $config ); exit $program->doit( instructions => 'Use what you need' );
Every programming problem solved, all you have to do is configure it right. Of course, now we need another module to save all that typing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPAN module fior common idioms?
by mhi (Friar) on Jul 23, 2004 at 09:14 UTC |