Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Print format not working

by toolic (Bishop)
on Oct 04, 2018 at 17:26 UTC ( #1223547=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1223547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-10-26 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?