- or download this
$ perl -d pm_1202351.pl
...
main::(pm_1202351.pl:4): my %son_father;
DB<1>
- or download this
DB<1> c 41
...
main::(pm_1202351.pl:41): if ($choice eq 'a'){
DB<2> p $choice
g
- or download this
DB<3> n
main::(pm_1202351.pl:44): } if (exists $son_father{$name1}
+) {
DB<3>
- or download this
if ($choice eq 'a'){
print "Enter a male name: ";
...
next;
}
- or download this
if ($choice eq 'a'){
print "Enter a male name: ";
...
next;
}
}
- or download this
$ perl -d pm_1202351.pl
...
g
DB<3> n
main::(pm_1202351.pl:54): if ($choice eq 'd') {
- or download this
DB<3> n
main::(pm_1202351.pl:57): } if (exists $son_father{$name2}
+) {
- or download this
DB<1> h
List/search source lines: Control script execution:
...
y [n [Vars]] List lexicals in higher scope <n>. Vars same as V.
e Display thread id E Display all thread ids.
For more help, type h cmd_letter, or run man perldebug for all docs.
- or download this
DB<3> p "FOO! <$choice>\n"
FOO! <g>
DB<4>
- or download this
DB<4> x %son_father
0 'Bruce'
...
7 'Doug'
8 'Thomas'
9 'Evan'
- or download this
DB<6> v 50
47: print "Add a father: ";
...
54: if ($choice eq 'd') {
55: print "Enter a male name: ";
56: chomp (my $name2 = ucfirst lc <STDIN>);