http://qs321.pair.com?node_id=1223547


in reply to Print format not working

Tip #1 from the Basic debugging checklist: Use warnings and you will see warning messages. Change:

chomp($text_lines);
to:
chomp(@text_lines);

Also, chomp $column.

You should also use strict, in which case you'll need to declare each variable with my.

Replies are listed 'Best First'.
Re^2: Print format not working
by catfish1116 (Beadle) on Oct 04, 2018 at 18:37 UTC

    Declaring the text_lines as my @text_lines & chomping column worked !!!

    Thank you !! Catfish