Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2012.03
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (10 sloc) 0.346 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use v6;


say "1..4";

try { die };
say "ok 1"; # we're still here, so &try worked at least partially.

try { die "foo\n" };
if $! eq "foo\n" { say "ok 2" } else { say "not ok 2" }

try { "this_does_not_die" };
if !$! { say "ok 3" } else { say "not ok 3" }

try { die "bar\n" };
if $! eq "bar\n" { say "ok 4" } else { say "not ok 4" }
Something went wrong with that request. Please try again.