NAME
Crane::Base - Minimal base class for Crane projects
SYNOPSIS
use Crane::Base;
DESCRIPTION
Import this package is equivalent to:
use strict;
use warnings;
use utf8;
use feature qw( :5.14 );
use open qw( :std :utf8 );
use Carp;
use English qw( -no_match_vars );
use IO::Handle;
use Readonly;
EXAMPLES
Script usage
use Crane::Base;
say 'Hello!' or confess($OS_ERROR);
Package usage
package Example;
use Crane::Base qw( Exporter );
Readonly::Scalar(our $CONST => 'value');
our @EXPORT = qw(
&example
$CONST
);
sub example {
say 'This is an example!' or confess($OS_ERROR);
}
1;
ENVIRONMENT
- BASE_PATH
-
Used to determine the base directory for the application environment.
BUGS
Please report any bugs or feature requests to https://rt.cpan.org/Public/Bug/Report.html?Queue=Crane or to https://github.com/temoon/crane/issues.
AUTHOR
Tema Novikov, <novikov.tema@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2013-2014 Tema Novikov.
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license in the file LICENSE.