Leon Timmermans > Scope-OnExit-0.02 > Scope::OnExit

Download:
Scope-OnExit-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Scope::OnExit - Running code on scope exit

VERSION ^

Version 0.02

SYNOPSIS ^

Execute code on scope exit

    use Scope::OnExit;

        {
        my $var = foo();
        on_scope_exit { do_something($var) };
        something_else();
        } # scope exit, do_something($var) is run now.

FUNCTIONS ^

on_scope_exit { block }

This will make the block run at scope exit.

AUTHOR ^

Leon Timmermans, <leont at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-scope-onexit at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Scope-OnExit. 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 Scope::OnExit

You can also look for information at:

COPYRIGHT & LICENSE ^

Copyright 2009 Leon Timmermans, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: