in reply to Re: substring functionin thread substring function
#!/usr/bin/perl -w use strict; open FILE, "SAPPDAY.00063.new" or die "Ack! Can't open: $!\n"; while(<FILE>) { if(/^(?:16|88)/) { s/\s+\r\n$/\r\n/g; print; } } close FILE; [download]