diff options
author | Shlomi Fish <shlomif@cpan.org> | 2012-09-10 21:08:05 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-09-10 21:08:05 -0400 |
commit | 72d7d80d5af646d4eedc189a71ea4b44d8dcc834 (patch) | |
tree | 97a0d80d1bb5aaf4afb25539f6c111e905ad075b /lib/perl5db | |
parent | 3526bd3e206f7db2c8cafbf4009283042a67004a (diff) | |
download | perl-72d7d80d5af646d4eedc189a71ea4b44d8dcc834.tar.gz |
Add more tests, Revert back to C-style for loops
This patch to lib/perl5db.pl and lib/perl5db.t adds more tests for the L
and S commands and reverts some changes from C-style for loops to
while+continue loops which were not very popular.
Diffstat (limited to 'lib/perl5db')
-rw-r--r-- | lib/perl5db/t/test-w-statement-1 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/perl5db/t/test-w-statement-1 b/lib/perl5db/t/test-w-statement-1 new file mode 100644 index 0000000000..bfd5ccd7d8 --- /dev/null +++ b/lib/perl5db/t/test-w-statement-1 @@ -0,0 +1,20 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use vars qw($foo); + +$foo = 1; + +print "Hello\n"; + +for my $idx (map { $_ * 10 } 1 .. 10) +{ + if ($idx > 17) + { + $foo = 2; + print "Baz\n"; + } +} + |