Help for this page

Select Code to Download


  1. or download this
    %presence = ( 'hi'  => [
                            { from => 65, to => 85 },
    ...
                            { from => 33, to => 53 }
                           ],
                 );
    
  2. or download this
    %presence = ( 'hi'  => [
                            [65, 85],
    ...
                            [33, 53]                             
                           ],
                 );
    
  3. or download this
    use constant FROM => 0;
    use constant TO => 1;
    
  4. or download this
    my %presence;
    while(<INPUT>) {
    ...
        # or, with arrays:
        # push @{$presence{$name}}, [ $from, $to ];
    }