in reply to How do you match for everything including newline
Use the /s modifier to make . match \n. See perlop for a full description.
update: perlre contains the full description of the /imsx modifiers.