CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
CSV File to Web page

 



Nec
New User

Feb 7, 2011, 12:05 PM

Post #1 of 2 (263 views)
CSV File to Web page Can't Post

Hi there!

Trying to display a "CSV" file from a web page using perl. The CSV file is located on another server and I use this command to get it:

system("ssh","-n","server","cat","csvfile");

This works well, however, I'd like to take it a step further and have the CSV contents displayed in a table instead of the raw comma delimited values. How do I do this?

Thanks,

Nec


shawnhcorey
Enthusiast


Feb 7, 2011, 12:13 PM

Post #2 of 2 (262 views)
Re: [Nec] CSV File to Web page [In reply to] Can't Post

Use a module from CPAN, either Text::CSV of Text::CSV_XS.

__END__

I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives