Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(shockme) Re: concatening strings

by shockme (Chaplain)
on Nov 07, 2003 at 17:19 UTC ( #305374=note: print w/ replies, xml ) Need Help??


in reply to concatening strings

I'm not sure exactly what you're wanting, and your code is somewhat unformatted and difficult to follow. There are probably better ways, but the following should get you started:
while(<DATA>) { my (@elements) = split(/\s/, $_); my $html = "<td><input type=\"$elements[1]\" name=\"$elements[0]\" +></td>"; print "<table><tr><td>$html</td></tr></table>\n"; } __DATA__ Subject checkbox yes Data checkbox yes

Update: asarih beat me to it. With a better solution too, imo.

If things get any worse, I'll have to ask you to stop helping me.


Comment on (shockme) Re: concatening strings
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://305374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-20 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls