http://www.perlmonks.org?node_id=723404


in reply to Re^2: chopping the beginning and end of lines in 2 files
in thread chopping the beginning and end of lines in 2 files

I hope a few general remarks are welcome.

I would suggest you to use use strict; and use warnings;.

And please don't use $a and $b, the are even with use strict; not under the strict conditions, because there are used by sort.


Edit: I should renew the page before answering. Grandfather was faster and he did better.