Help for this page

Select Code to Download


  1. or download this
    %ResultStatusCodes = (
        1 => "registered",
        2 => "unregistered",
        3 => "waiting"
    )
    
  2. or download this
    $resultStatus[1] = 1;
    
  3. or download this
    %ResultsByCode = (
        registered        =>    @ of registered ids
        unregistered    =>    @ of unregistered ids
        waiting            =>    @ of waiting ids
    )
    
  4. or download this
    @ResultsByCode = (
        1        =    @ of registered ids
        2    =    @ of unregistered ids
        3    =    @ of waiting ids
    )
    
  5. or download this
        @resultsByCode = ();
        for ($i=1;$i<=5;$i++){ $resultsByCode[$i] = ();}
        for ($i=1;$i<=5;$i++){
            push $resultsByCode[$resultStatus{$i}], $i;
        }
    
  6. or download this
        %resultsByCode = ();
        for ($i=1;$i<=5;$i++){
            push $resultsByCode{$resultStatus{$i}}, $i;
        }