in reply to Re^2: How to process several files with different line numbers
in thread How to process several files with different line numbers

print READ "is empty!\n";

as Athanasius points out: this tries to write "is empty!" to the file READ.

Probably what you intended was to print the file name with that message instead of (mis)using the file handle - should look like

print "$arg is empty!\n";

Replies are listed 'Best First'.
Re^4: How to process several files with different line numbers
by thanos1983 (Parson) on Jul 05, 2014 at 23:08 UTC

    Hello soonix,

    Apologies, my brain was not working at the moment. I was really thinking how to solve a problem that I have with arrays of arrays and I completely forgot the meaning of the print READ. I had in my mind the name of the file as you correctly pointed out.

    Thanks for your time and effort to clear it out though.

    Seeking for Perl wisdom...on the process...not there...yet!