SVK::Editor::TxnCleanup - An editor that aborts a txn when it is aborted
my $editor = ... # stack the txn cleanup editor on $editor = SVK::Editor::TxnCleanup-> (_editor => [$editor], txn => $txn ); # ... do some stuff ... $editor->abort_edit; # $txn->abort gets called.
To install SVK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVK
CPAN shell
perl -MCPAN -e shell install SVK
For more information on module installation, please visit the detailed CPAN module installation guide.