Help for this page

Select Code to Download


  1. or download this
    {
        # Set the record separator to match the data.
        # In this example I have a blank line between
    ...
    First line of text
    second line of text
    in the third line I have 1.73205081
    
  2. or download this
        $/ = "First line of text";
    
        while (<DATA>) {
    ...
                print "Captured ($1)\n";
            }
        }
    
  3. or download this
    {
        $/ = undef;
        my $data = <DATA>;
    ...
            print "Captured $_\n";
        }
    }