in reply to Re: "Unescaped left brace in regex is deprecated"
in thread "Unescaped left brace in regex is deprecated"
To make the test plan a bit more clear, maybe use some of the functions from Test::Exception to consolidate some operations. E.g., the last few tests above might be re-written (untested):
(In place of dies_ok() you could use throws_ok() and check for a specific "file does not exist" error message.)lives_ok { close $fh or die "closing '$f': $!"; close $wfh or die "closing '$wf': $!"; unlink $wf or die "unlinking '$wf': $!"; } 'file cleanup ok'; dies_ok { open my $wfh, '<', $wf or die "opening '$wf': $!"; } "after unlink of '$wf': cannot re-open for read";
Give a man a fish: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "Unescaped left brace in regex is deprecated"
by stevieb (Canon) on Jul 18, 2015 at 20:19 UTC |