will set the default delimeter to undefined (as opposed to \n). If it is, then my regex is not working like I thought it would.$/ = undef;
Output:#!/usr/bin/perl use strict; use warnings; local $/ = undef; my $info = <DATA>; while ( $info =~ /<tag>(.+?)<\/tag>/g ) { print "$1\n"; } __DATA__ <tag>This is a line</tag> <tag>This one goes over multiple lines</tag> __END__
In reply to $/ = undef question by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |