On Wed, 2004-09-29 at 21:25, JupiterHost.Net wrote:
> >>> I would like the output in the following format
> >>> object1<...tab....>Description1
> >>> object2<...tab....>Description2
> >>> object3<...tab....>Description3
> >>
> >>
> >> perl -lne 'BEGIN{$/="\n\n";}s/\n/\t/;print' FILENAME
> > 
> > 
> > 
> > perl -l -00pe's/\n/\t/' FILENAME
> 
> That's pretty slick you guys, he's sure to get an A+ ;)
> 
> If your teacher requires the quotes to be removed:

What if the teacher requires an explanation? O:-)

It is my opinion that code should be explained, at least in this list.
 You're trying to teach people how to fish (and maybe swim). Giving them
 fish is good, of course, but tell them how you got it :-)

That said, nice code :-)

>   perl -l -00pe's/\n/\t/;s/\"//g;' FILENAME
> 
> :)
-- 
José Alves de Castro <[EMAIL PROTECTED]>
  http://natura.di.uminho.pt/~jac



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to