Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A simple tool for translating MooseX::Declare syntax sugar into plain Moose
Perl Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


A simple tool for translating MooseX::Method::Signatures syntax sugar
into native subs and parameters parsing

Motivation: contains two functions: undeclare, undeclareFile (see POD). is a simple interface util for this package:
 - you can use it to read from STDIN and write to STDOUT;
 - you can provide one or two filenames as arguments for 
input and output correspondingly, provided only one argument will rewrite the input file.

We use in our build script and it looks somehow like this;

use strict;
use warnings;

use File::Find;
use lib $FindBin::Bin;
use Undeclare;

my $SourceDir  = 'Path to your codebase';
my $ReleaseDir = 'Where to put undeclared code';

mkdir $ReleaseDir unless -d $ReleaseDir;
`rm -r $ReleaseDir/*`;
`cp -r $SourceDir $ReleaseDir`;

   sub { 
      /\.pm$/ && Undeclare::undeclareFile( $_ ); 
      print "$File::Find::name was undeclared\n"; 
Something went wrong with that request. Please try again.