Help for this page

Select Code to Download


  1. or download this
    my %RULES = (
        'post' => { 'msgid' => '^(\d+|new)$', 'data' => '...', },
    ...
        exists $allowed->{'key'} ? 1 : return 0;
        ...
    }
    
  2. or download this
    for ($query->{'action'}) {
        $allowed = /post/    ? { ... } :
    ...
                   /delete/  ? { ... } :
                               die "that action isn't supported";
    }
    
  3. or download this
    local $_ = "0A72656B636148206C72655020726568746F6E41207473754A";
    while(s/..$//) { print chr(hex($&)) }