Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Print format not working

by toolic (Bishop)
on Oct 04, 2018 at 17:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1223547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found