Skip to content

Instantly share code, notes, and snippets.

@nihen
Created December 18, 2009 18:33
Show Gist options
  • Save nihen/259669 to your computer and use it in GitHub Desktop.
Save nihen/259669 to your computer and use it in GitHub Desktop.
ROOT_GIVEN:
given ( '/hoge' ) {
when ( m{^/h(.*)$} ) {
my $after = $1;
given ($after) {
when ( 'uga' ) {
say 'huga';
}
default {
continue ROOT_GIVEN;
}
}
}
default {
say 'root default';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment