NAME
Parse::ExuberantCTags::Merge::SimpleScopeGuard - A simple-minded scope guard for cleanup
SYNOPSIS
use Parse::ExuberantCTags::Merge::SimpleScopeGuard;
{
my $guard = Parse::ExuberantCTags::Merge::SimpleScopeGuard->new(
files => [qw/to be cleaned up/],
);
# ...
}
# files deleted.
DESCRIPTION
For internal use only.
METHODS
new
Constructor, may take files
parameter with an array reference of file names/paths. Make sure that these are either absolute paths or that you're still in the same working directory when the scope guard fires.
files
Set a new bunch of files to guard.
add_files
Takes one or more file names as argument and appends to the list of guarded files.
cleanup
Delete the guarded files
DESTROY
Calls cleanup
on object destruction.
SEE ALSO
and many more on CPAN.
AUTHOR
Steffen Mueller, <smueller@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available.