in reply to Re^4: How to read data from csv file and place the data on HTML format
in thread How to read data from csv file and place the data on HTML format

Hi Marto,

First of all my apologies for the trouble and i
rectified the '.' issue

print "\n $pattern,$Orig_gz[0],$Orig_gz[1],$Orig_gz[1],$TT1[0]->[0],$ +TT1[0]->[1],$Orig[0],$Orig[1],$Orig[1],TRUE\n"; print "\t \t \t \t \t $TT1[1]->[0],$TT1[1]->[1] \n";

The only issue what i am having is HTML table

Where i was not able to use HTML:: modules

Any help on how can i put my data on table

is appreciated

Thanks

  • Comment on Re^5: How to read data from csv file and place the data on HTML format
  • Download Code

Replies are listed 'Best First'.
Re^6: How to read data from csv file and place the data on HTML format
by marto (Cardinal) on Jun 27, 2013 at 09:58 UTC

    "Where i was not able to use HTML:: modules"

    Which modules, why are you not able to use them? Making people guess what problems you're having is a waste of your time and ours. Please be specific, read and understand How do I post a question effectively?.

    "Any help on how can i put my data on table"

    Does this relate to your many previous posts about emailing this data as the email body? Regardless, since you can print the data, you know you could simply print the HTML required to display this in a table. Alternativly you could use a templating module such as HTML::Template or Template::Toolkit to keep your HTML and your data separate.

      Hi,

      Sorry again, i mean to say the perl modules are not avaiable in

      my system,such as HTML::Template or Template::Toolkit

      when i use the HTML::Template or Template::Toolkit,

      I am getting error like "Can't locate HTML/Entities.pm in @INC"

      Do we have any other method where we can create tables

      and put data in tables

      Thanks

        If modules aren't available it means that they didn't come along with Perl, or you haven't installed them yet. If you want to use them, you'll have to install them, the same way you (or someone else on your system) did with MIME::Lite. Basically:

        cpan Module::Name

        Ensure your configuration is setup to follow prerequisites:

        cpan> o conf prerequisites_policy follow cpan> o conf commit

        I mentioned another method in my previous post. If you understand how to build up a string and print it, the same principle applys to building up a string of HTML. Again, please read the posts I linked to, the formatting of your posts is really weird.