Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Placing text onto multiple lines

by pzbagel (Chaplain)
on May 11, 2003 at 22:36 UTC ( #257297=note: print w/replies, xml ) Need Help??


in reply to Placing text onto multiple lines

I'm going to assume that every input line is comprised of a name and data and then 1 or more <job>s.

while(<INPUT>){ chomp; ($name,@jobs)=split /<job>/; for $job (@jobs) { print OUTPUT "$name <job>$job\n"; } }

Good luck

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2023-02-03 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (24 votes). Check out past polls.

    Notices?