Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl Monks,
Please tell me how to display the result of the ls -Rl in column on the web browser screen. There are many example to display it using the extra spaces on the terminal screen but on the web browser screen, the & nbsp is needed so how can I append extra & nbsp characters to individual column to make them lined up. Any thoughts?
Thanks.
  • Comment on Displaying Results In Column in web browser

Replies are listed 'Best First'.
Re: Displaying Results In Column in web browser
by jZed (Prior) on Aug 10, 2007 at 23:37 UTC
    Either you already asked the question Displaying text in columns or you are trying to get us to do the same homework assignment as someone else. In either case the question was already answered: use HTML <pre>...</pre> tags.
      I did not want to start a new thread for this question but another monk told me to start a new thread if I have a new question. Sorry if it offended anyone.
      Thanks for the answer though.
Re: Displaying Results In Column in web browser
by eric256 (Parson) on Aug 10, 2007 at 23:37 UTC

    Don't append values, either use pre tags (this is one of the jobs they are made for) or replace all spaces in your output with nbsp. Either way its general considered a good idea to show us the code you have, then we can help you improve it.


    ___________
    Eric Hodges