Help for this page

Select Code to Download


  1. or download this
    my %hash;
    my $re= qr{
    ...
    while(  /$re/g  ) {
        $hash{pos($_)}= $1;
    }
    
  2. or download this
    my @nl;
    while(  /\n/g  ) {
    ...
        $ln++   while  $nl[$ln-1] < pos($_);
        $hash{$ln}= $1;
    }