Parse::ExuberantCTags::Merge::SimpleScopeGuard - A simple-minded scope guard for cleanup
use Parse::ExuberantCTags::Merge::SimpleScopeGuard; { my $guard = Parse::ExuberantCTags::Merge::SimpleScopeGuard->new( files => [qw/to be cleaned up/], ); # ... } # files deleted.
For internal use only.
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.
Takes one or more file names as argument and appends to the list of guarded files.
Delete the guarded files
Calls cleanup on object destruction.
cleanup
Guard
Scope::Guard
and many more on CPAN.
Steffen Mueller, <smueller@cpan.org>
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.
To install Parse::ExuberantCTags::Merge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::ExuberantCTags::Merge
CPAN shell
perl -MCPAN -e shell install Parse::ExuberantCTags::Merge
For more information on module installation, please visit the detailed CPAN module installation guide.