Help for this page

Select Code to Download


  1. or download this
    @ranges = ([172,178],[183,189],[201,208]);
    
  2. or download this
    $input =~ s/(\d+)/(grep {$1 >= $_->[0] && $1 <= $_->[1]} @ranges) ? $s
    +ymbol : $1/eg;
    
  3. or download this
    @ranges = ();
    push @ranges, "[172,178]";
    push @ranges, "[183,189]";
    push @ranges, "[201,208]";