Help for this page

Select Code to Download


  1. or download this
    my %control = map { $_ => 'false' } split ' ', 'play ctrl loop'
    %control = map { $_ => 'true' } split ' ', $4;
    
  2. or download this
      my %control = map { $_ => 'false' } qw(play ctrl loop);
      $control{$_} = 'true' for split ' ', $4;
    
  3. or download this
      my %control = map { $_ => 'false' } qw(play ctrl loop);
      %control = (%control, map { $_ => 'true' } split ' ', $4);
    
  4. or download this
      my %control = map { $_ => 'true' } split ' ', $4;
      $control{$_} ||= 'false' for qw(play ctrl loop);
    
  5. or download this
      my %control = map { $_ => 'true' } split ' ', $4;
      %control = ((map { $_ => 'false' } qw(play ctrl loop)), %control);
    
  6. or download this
      my %control = ((map { $_ => 'false' } qw(play ctrl loop)),
                     (map { $_ => 'true' } split ' ', $4));