Acme-MetaSyntactic
view release on metacpan or search on metacpan
script/metafy view on Meta::CPAN
Replace the French metasyntactic words by the classic English ones:
$ metafy foo/fr:foo/en
=item *
Replace any word from the C<batman> theme by a random one from the
C<donmartin> theme. The replacement will be different every time:
$ metafy --force-random batman:donmartin
=item *
Replace words from a theme by words from the same theme (for example if you
didn't like the first run):
$ metafy batman
In other words, if C<from> is not given, it's the same as C<to>.
=item *
Modify a bunch of files in-place:
$ metafy --in-place foo:batman *.c
There is currently no way to create backup files (like perl's I<-i> option
allows).
=back
Each word from the original theme is replaced by the same word of the
target theme. However, if the target theme does not contain enough words
to map to the words from the original theme used in the file, then the
same words maybe used more than once. B<This may break programs!>
The option I<--force-random> will certainly break your stuff.
=head1 COMMAND-LINE OPTIONS
The following command-line options are available (and can all be abbreviated):
=head2 Metasyntactic options
=over 4
=item I<--force-random>
Compute the replacement for each word every time it's needed.
B<This will definitely break any program!>
=item I<--in-place>
Force in-place edition
=back
=head2 Informative options
The program will exit if any of these options is selected.
However, these options can be combined.
=over 4
=item I<--themes>
Print the list of available themes.
=item I<--version>
Print version information.
=item I<--help>
Print a short help message.
=back
=head1 AUTHOR
Philippe "BooK" Bruhat, C<< <book@cpan.org> >>.
=head1 COPYRIGHT
Copyright 2006 Philippe 'BooK' Bruhat, All Rights Reserved.
=head1 LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=cut
( run in 1.096 second using v1.01-cache-2.11-cpan-39bf76dae61 )