develooper Front page | perl.perl6.users | Postings from October 2018

KEEP/UNDO phaser question

Thread Next
Norman Gaywood
October 27, 2018 23:51
KEEP/UNDO phaser question
Message ID:
Just been reading  the latest of Elizabeth's wonderful blog posts on how
phasers work in perl6:

I have question on the KEEP/UNDO example:
    KEEP $dbh.commit;
    UNDO $dbh.rollback;
    ...    # set up a big transaction in a database
    True;  # indicate success

Won't that "True;  # indicate success" just force the KEEP phaser to run?
Shouldn't you just use the result of  whatever  is the result of "... # set
up a big transaction in a database"?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About