Skip to content

Instantly share code, notes, and snippets.

Created March 1, 2017 19:50
Show Gist options
  • Save anonymous/e7a70d174279f711917d78dc3f63be65 to your computer and use it in GitHub Desktop.
Save anonymous/e7a70d174279f711917d78dc3f63be65 to your computer and use it in GitHub Desktop.
while @!laws.shift -> $law {
# my $law = @!laws.shift;
given $law {
when /origin | core/ {%!phyhash{$power}{$law} = @!laws.shift or die};
when /nocolor | yolo/ {%!phyhash{$power}{$law} = True if $power eq "$arg1"};
when /asd/ {%!phyhash<Nebula>{$law} = @!laws.shift if $power eq "abc"};
when 'cluster' {%!phyhash{$power}{$law} = True if $power eq "asd"};
when Force {$power = "Star"};
default {die "USAGE:"};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment