On Sun, Nov 23, 2003 at 03:53:00PM -0500, Austin Hastings wrote: > > -----Original Message----- > > From: Damian Conway [mailto:[EMAIL PROTECTED] > > > > Remember that a C<try> without a C<CATCH> catches all exceptions > > and returns > > C<undef> (the same as a Perl 5 C<eval> block does). > > > > So you just want: > > > > try { $opus.write_to_file($file) } > > err die "Couldn't write to $file: $!\n"; > > Is that C<err die> or C<or die> ? > > And if so, what's C<err> and where can I find more on it?
Exegesis 4 ... In Apocalypse 3, Larry introduced the // operator, which is like a || that tests its left operand for definedness rather than truth. What he didn't mention (but which you probably guessed) was that there is also the low-precedence version of //. Its name is err: Operation High Precedence Low Precedence INCLUSIVE OR || or EXCLUSIVE OR ~~ xor DEFINED OR // err This is in the "Read or Die" section of E4 if you want to read more. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]