|
Acme::Handwave - Get the result you want without tedious algorithms or real programming |
Acme::Handwave - Get the result you want without tedious algorithms or real programming
use Acme::Handwave;
my %foo = (bar => 143,
baz => 156,
quxx => 543);
my %result = handwave(data => \%foo,
expected => {bar => 333,
baz => 332,
quxx => 331});
my $string = "this string needs transmogrifying";
$string = handwave(data => $string,
expected => "this string is transmogrified");
my @foobar = qw(a b c d e f g);
my @barfoo = handwave(data => \@foobar,
expected => ['h', 'i', 'j']);
Spent hours trying to tweak that algorithm, but never quite getting the result you're expecting? Now you can bypass all of that hassle with new, whiter-than-white Acme::Handwave.
Just give it the data structure you're trying to manipulate, and the result you've been expecting.
A little handwaving magic later, and presto! The result you were looking for.
handwave takes 2 arguments - the piece of data or datastructure you
want to operate on, and the piece of data or datastructure you were
expecting to get in return. No more messy hand-rolled data munging
routines. Just handwave(). The parameters you pass to it should be
named as follows:
The rest of the Acme:: namespace
Stuff by 'Simon Batistoni' - I'm in the process of changing my name right now.
Simon Kent, <simon@hitherto.net>
Copyright 2002 by Simon Kent
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Acme::Handwave - Get the result you want without tedious algorithms or real programming |