Help for this page

Select Code to Download


  1. or download this
    my $string = <<STRING;
     one.
     two \n \n .
     three.
    STRING
    
  2. or download this
    my @lines = $string =~ m/^(.*?)$/msg;
    
    # I need this test to pass
    is(scalar(@lines), 3, 'found 3 lines only');