Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Better Code Solution needed for the below CSV file parsing and printing in HTML format

by valavanp (Curate)
on Oct 14, 2008 at 12:10 UTC ( [id://716963]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!c:/perl/bin/perl
    
    ...
    
    close FH;
    
  2. or download this
    ID,NAME,AGE
    1,JOHN,21
    2,MARK,32
    3,CATHY,21
    
  3. or download this
    <HTML><HEAD><TITLE>CSV Output</TITLE></HEAD><body><table border=1><tr>
    +<td>ID</td><td>NAME</td><td>AGE</td><tr><td>1</td><td>Alex</td><td>24
    +</td></tr><tr><td>2</td><td>Bret</td><td>21</td></tr><tr><td>3</td><t
    +d>Cathy</td><td>24</td></tr></table>
    
  4. or download this
    #!c:/perl/bin/perl
    
    ...
    }
    print '</table>';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://716963]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found