# New Ticket Created by Dan Jacobson # Please include the string: [perl #33942] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=33942 > Perlre says m Treat string as multiple lines. That is, change "^" and "$" from... s Treat string as single line. That is, change "." to match any... But without also hinting that $/ needs to be changed, the user will get nowhere. P.S., please add something like this most basic example: $ seq 4|perl -pwe 'BEGIN{undef $/}s/2\n3/X/' 1 X 4 to perldoc -q 'matching over more than one line' (perlfaq6.pod), as for some reason there are no examples with "\n" in the regexp. Or mention there why not.Thread Next