Jay Savage wrote:
On Tue, Jul 8, 2008 at 10:52 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
Rob Dixon wrote:
Noah wrote:

@config_file_lines = <INPUT>;
s/\s+$/\n/ foreach @config_file_lines;
The newline is only necessary if you perform the substitution only on one
set of
 records. If you also apply it to those from the template file as I said
then it
will work fine.
I don't get it. The OP wants to compare lines. How would that work fine if
there are no lines to compare?

The file is split into lines, and each line stored as an element of
@lines. *Then* the crlf is stripped from each element of @lines.

Wow, how could I miss that? Anyway, I did. :(  Thanks, Jay!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to