in reply to Re^5: setting up boolean parameters from keywords
in thread setting up boolean parameters from keywords
Which I understand much better after reading your post.$control[0]{"play"} = "/false/; $control[0]{"ctrl"} = "/false/; $control[0]{"loop"} = "/false/; % control = map { $_ => 'true' } split ' ', $4;
my %control = map { $_ => 'false' } qw(play ctrl loop); $control{$_} = 'true' for split ' ', $4;
my %control = map { $_ => 'true' } split ' ', $4; %control = ((map { $_ => 'false' } qw(play ctrl loop)), %control);
|
|---|