Help for this page

Select Code to Download


  1. or download this
    my $text;
    {
    ...
    if ($text =~ /\w+\n\n\w+/) {
       print "reading file test:\n$text\nmatches.\n";
    }
    
  2. or download this
    ...
    
    while ($text =~ /\w+\n\n\w+/g) {
       print "reading file test:\n$text\nmatches.\n";
    }