Slurp Mode

The internal variable INPUT_RECORD_SEPARATOR determines which string of characters closes a line of input data.


use strict;
use warnings;
use English;

    local $INPUT_RECORD_SEPARATOR = '&';
    while (<DATA>) {
        print 'XXX' . $ARG . 'XXX' . "n";

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.