NAME
MooseX::Role::Tempdir - Moose role to provide a temporary directory
VERSION
Version 0.02
SYNOPSIS
package My::Awesome::Package;
use Moose;
with 'MooseX::Role::Tempdir';
my $newfh;
open($newfh, '>', $self->tmpdir()."/newfile") or die "ohno! $!";
...
Alias the tmpdir function if you want it called something else
with 'MooseX::Role::Tempdir' { -alias => { tmpdir => 'workdir' } };
my $newfh;
open($newfh, '>', $self->workdir()."/newfile") or die "ohno! $!";
SUBROUTINES/METHODS
There are some.
AUTHOR
Brad Barden, <iamb at mifflinet.net>
BUGS
Please report any bugs or feature requests to bug-moosex-role-tempdir at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Role-Tempdir. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc MooseX::Role::Tempdir
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-Role-Tempdir
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2012 Brad Barden.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.