Help for this page

Select Code to Download


  1. or download this
    $ perl pattern_matching.pl 
    Name "main::bob" used only once: possible typo at pattern_matching.pl 
    +line 50.
    Use of uninitialized value $bob in print at pattern_matching.pl line 5
    +0.
    
  2. or download this
    while (my ($k, $v) = each %$locals) {
        local ${$k} = $v;
    }
    
  3. or download this
    use strict;
    use warnings;
    
    ...
        no strict;
        print $bob;
    };