Help for this page

Select Code to Download


  1. or download this
    while ($mmap =~ m/^([^\n]*$pat[^\n]\n)/omg)
    {
      print $1;
    }
    
  2. or download this
    while ($mmap =~ m/$pat/omg)
    {
    ...
      my $last  = index($mmap,"\n",$pos)+1;
      print substr($mmap,$first,$last-$first);
    }
    
  3. or download this
    #!/usr/bin/perl
    
    ...
      close(F)
        or die "Couldn't close '$a': $!\n";
    }