Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Welcome to the Monastery
 
PerlMonks  

Re: Creating a table from text delimited by newlines

by physi (Friar)
on Nov 26, 2001 at 13:40 UTC ( [id://127542]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Creating a table from text delimited by newlines

Well I think you like to seperate Textblocks by a darkline, so this may also work:
$/="\n\n"; #set the input Record seperator to + a double newline while (<FH>) { next if /^\n+$/; #ignore lines which contains only +newlines print "<TR><TD>Checkbox</TD> <TD>$_ </TD></TR>\n #print the textblock with an ... print <TR bgcolor=#000066> #apending darkline <TD WIDTH=298>&nbsp;</TD> <TD WIDTH=298>&nbsp;</TD> </TR>\n"; } close FH; ----------------------------------- --the good, the bad and the physi-- -----------------------------------

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127542]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.