Another option is to:
chomp( my @works = <FILEY> ); [download]
In reply to Re: Unwanted line breaks-- why? by Kenosis in thread Unwanted line breaks-- why? by jeffrgsf