#!/usr/bin/perl use strict; my $l; while (<DATA>) { if ($_ =~ /^====/) {chomp $l;} print $l; $l=$_; } print $l; __DATA__ one two ====three four
In reply to Re: Why does my Perl regex substitution for linebreak fail?
by halfcountplus
in thread Why does my Perl regex substitution for linebreak fail?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |