summaryrefslogtreecommitdiff
path: root/lib/perl5db.pl
diff options
context:
space:
mode:
authorJosh ben Jore <jjore@cpan.org>2010-07-10 07:53:35 -0700
committerJosh ben Jore <jjore@cpan.org>2010-07-10 19:25:11 +0000
commit4a49187b4ff06d1d913d4bf83abf7388b9dfe065 (patch)
tree557b345429b8b15c46194826accc3f9478be083c /lib/perl5db.pl
parent999f23be0835e6ccd8ae052efccda4af3260d475 (diff)
downloadperl-4a49187b4ff06d1d913d4bf83abf7388b9dfe065.tar.gz
Promote eval( "require ..." ) to eval { require ... }
Diffstat (limited to 'lib/perl5db.pl')
-rw-r--r--lib/perl5db.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index 09613a3ac8..da872e6ced 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -6018,7 +6018,7 @@ sub setterm {
# We don't have a TTY - try to find one via Term::Rendezvous.
else {
- eval "require Term::Rendezvous;" or die;
+ require Term::Rendezvous;
# See if we have anything to pass to Term::Rendezvous.
# Use $HOME/.perldbtty$$ if not.
@@ -8617,7 +8617,7 @@ if PadWalker could be loaded.
=cut
- if (not $text =~ /::/ and eval "require PadWalker; 1" and not $@ ) {
+ if (not $text =~ /::/ and eval { require PadWalker } and not $@ ) {
my $level = 1;
while (1) {
my @info = caller($level);