in reply to Re: Unit test - check file created using test::directory
in thread Unit test - check file created using test::directory

Need to add unlink $path/$fname; at the end.

1 Peter 4:10

Replies are listed 'Best First'.
Re^3: Unit test - check file created using test::directory
by jeffa (Bishop) on Jul 03, 2014 at 19:39 UTC

    File::Temp does that for you. Run the code and see for yourself.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)