Help for this page

Select Code to Download


  1. or download this
    $ perl -e '%x = { a => 1, b => 2 }'
    $
    
  2. or download this
    $ perl -e 'use warnings; %x = { a => 1, b => 2 }'
    Name "main::x" used only once: possible typo at -e line 1.
    Reference found where even-sized list expected at -e line 1.
    $
    
  3. or download this
    $ perl -e 'use strict; %x = { a => 1, b => 2 }'
    Global symbol "%x" requires explicit package name (did you forget to d
    +eclare "my %x"?) at -e line 1.
    Execution of -e aborted due to compilation errors.
    $
    
  4. or download this
    use strict;
    use warnings;
    
  5. or download this
    #!/usr/bin/env perl
    
    ...
            printf "%8s : No voice found\n", $language;
        }
    }
    
  6. or download this
      German : [3] Microsoft Hedda Desktop - German
    Japanese : [4] Microsoft Haruka Desktop - Japanese
      French : No voice found
     English : [0] Microsoft Zira Desktop - English (United States)
     Chinese : [5] Microsoft Huihui Desktop - Chinese (Simplified)
    
  7. or download this
    ...
        if (@available_voices) {
    ...
                @available_voices = grep $all_voices{$_}, @available_voice
    +s;
            }
    ...
    
  8. or download this
      German : [3] Microsoft Hedda Desktop - German
    Japanese : [4] Microsoft Haruka Desktop - Japanese
      French : No voice found
     English : [1] Microsoft Hazel Desktop - English (Great Britain)
     Chinese : [5] Microsoft Huihui Desktop - Chinese (Simplified)