Help for this page

Select Code to Download


  1. or download this
    my %k;
    $k{'A'} = 'Foo';
    $k{'B'} = 'Bar';
    $k{'C'} = 'Baz';
    
  2. or download this
    s/@k{qw(A B C)}/stuff/;
    
  3. or download this
    s/Foo Bar Baz/stuff/;
    
  4. or download this
    s/FooBarBaz/stuff;
    
  5. or download this
    print @k{qw(A B C)}, $/;
    
  6. or download this
    $x = join('', @k{qw(A B C)});
    s/$x/stuff/;