Help for this page

Select Code to Download


  1. or download this
    $ perl -d pm_1202351.pl
    
    ...
    
    main::(pm_1202351.pl:4):        my %son_father;
      DB<1>
    
  2. or download this
      DB<1> c 41
    
    ...
    main::(pm_1202351.pl:41):         if ($choice eq 'a'){
      DB<2> p $choice
    g
    
  3. or download this
      DB<3> n
    main::(pm_1202351.pl:44):             } if (exists $son_father{$name1}
    +) {
      DB<3>
    
  4. or download this
      if ($choice eq 'a'){
        print "Enter a male name: ";
    ...
                  next;
      }
    
  5. or download this
      if ($choice eq 'a'){
        print "Enter a male name: ";
    ...
              next;
        }
      }
    
  6. or download this
    $ perl -d pm_1202351.pl
    
    ...
    g
      DB<3> n
    main::(pm_1202351.pl:54):         if ($choice eq 'd') {
    
  7. or download this
      DB<3> n
    main::(pm_1202351.pl:57):             } if (exists $son_father{$name2}
    +) {
    
  8. 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.
    
  9. or download this
      DB<3> p "FOO! <$choice>\n"
    FOO! <g>
    
      DB<4>
    
  10. or download this
      DB<4> x %son_father
    0  'Bruce'
    ...
    7  'Doug'
    8  'Thomas'
    9  'Evan'
    
  11. 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>);