Acme::MetaSyntactic - Themed metasyntactic variables
use Acme::MetaSyntactic; my $meta = Acme::MetaSyntactic->new( 'shadok' ); $meta->name; # return a single name (at random) from the theme $meta->name( 4 ); # return 4 distinct names # you can temporarily switch theme (NOT RECOMMENDED) $meta->foo; # return 1 name from theme foo $meta->foo(2); # return 2 names from theme foo
When writing code examples, it's always easy at the beginning:
my $foo = "bar"; $foo .= "baz"; # barbaz
But one gets quickly stuck with the same old boring examples. Does it have to be this way? I say "No".
Here is Acme::MetaSyntactic, designed to fulfill your metasyntactic needs. No more will you scratch your head in search of a good variable name!
Acme::MetaSyntactic has an object-oriented interface, as well as a functionnal one.
If you choose to use the OO interface, the following methods are available:
Create a new instance of Acme::MetaSyntactic with the theme $theme. If $theme is omitted, the default theme is foo.
$theme
foo
Return $count items from the theme given in the constructor.
$count
There is also one class method:
This class method adds a new theme to the list. It also creates all the convenience methods needed.
Convenience methods also exists for all the themes. The methods are named after the theme.
The functional interface will be implemented in version 0.02.
The following themes are available in this version:
The fight sound effects from the 60s serial.
The characters from the popular serial.
The classic theme. This is the default theem
The whole shadok vocabulary. 4 words.
The French metasyntactic names.
Philippe 'BooK' Bruhat, <book@cpan.org>
<book@cpan.org>
Please report any bugs or feature requests to bug-acme-metasyntactic@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-acme-metasyntactic@rt.cpan.org
If you think this modules lacks a particular set of metasyntactic variables, please send me a list, as well as a generation algorithm (either one of the built-ins any, list, combine, or a new one from your invention)
This module could not have been possible without:
All the bat sounds come from this page: http://www.usfamily.net/web/wpattinson/otr/batman/batfight.htm
See http://use.perl.org/~BooK/journal/22301.
who apparently plans to use it.
Copyright 2005 Philippe 'BooK' Bruhat, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::MetaSyntactic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::MetaSyntactic
CPAN shell
perl -MCPAN -e shell install Acme::MetaSyntactic
For more information on module installation, please visit the detailed CPAN module installation guide.