Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9247081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:38:38+00:00 2026-06-18T09:38:38+00:00

I am using Perl to read data from a file into an array then

  • 0

I am using Perl to read data from a file into an array then using HTML::Template to display the data in a HTML page. All I am doing is reading the data into the array line by line and outputting it.

Or I was until I noticed that the data in the middle section of the file was misaligned on the web page. I then wrote some Perl code to pad the first part of the line and then add the second column back in. Example on the web page:

T - Online Transmit Done                                    R - Online Request Allowed 
E - Extracted batch                                      M - Multiple transmission 
P - Transmission in Progress                                  U - Batch Unextractable 
N - Batch Nontransmittable                                  B - BSC

If I copy and paste the data from the web page I get this perfectly aligned:

T - Online Transmit Done                                    R - Online Request Allowed 
E - Extracted batch                                         M - Multiple transmission 
P - Transmission in Progress                                U - Batch Unextractable 
N - Batch Nontransmittable                                  B - BSC 

Where am I going wrong? The data is showing as correctly padded but not inside a table on an HTML page. Here is the HTML I am using, nothing fancy:

<TABLE BORDER=1 ALIGN="center">
    <TR>
        <TD ALIGN="center"><B>DATA</B></TD>
    </TR>

    <TMPL_LOOP NAME="THIS_LOOP">
    <TR>
         <TD ALIGN="left"><TMPL_VAR NAME="DATA"></TD>
    </TR>
    </TMPL_LOOP>
</TABLE>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:38:39+00:00Added an answer on June 18, 2026 at 9:38 am

    You could use a monospaced font, like Courier, for your table data. Your columns aren’t lining up because the font you are using has different widths for different letters.

    But positioning elements with spaces is not a good idea. It’d be worthwhile to rethink your layout / logic and use tables as they were intended to be used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Perl to print some data read from one file to another.
I'm trying to read data from SQL Server database using Perl and the DBI
how to read the multiple values from XML file using perl script? i have
Puppy meta data gets read in from config file using (General::Config) and creates this
I'm using YAML::Tiny to write to and read from a file in Perl. Unfortunately,
I'm trying to encrypt a text file using Perl and then decrypt it using
I've to read and parse HTML file and populate a data structure (in C++).
I have a perl script read Excel file and parse using a perl module
Need to load data from a single file with a 100,000+ records into multiple
I was using Perl to read through each line of a file. I used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.