pkgsrc/devel/p5-MooseX-Role-Tempdir/DESCR
mef f305d2432e Import p5-MooseX-Role-Tempdir-0.03 as devel/p5-MooseX-Role-Tempdir.
MooseX::Role::Tempdir - Moose role to provide temporary directories
 ---------------
 package My::Awesome::Package;
        use Moose;
        with 'MooseX::Role::Tempdir';

        my $newfh;
        open($newfh, '>', $self->tmpdir()."/newfile") or die "ohno! $!";
        ...
 ----------------
2015-02-06 05:11:38 +00:00

10 lines
296 B
Text

MooseX::Role::Tempdir - Moose role to provide temporary directories
---------------
package My::Awesome::Package;
use Moose;
with 'MooseX::Role::Tempdir';
my $newfh;
open($newfh, '>', $self->tmpdir()."/newfile") or die "ohno! $!";
...
----------------