> Thanks for your help guys... > > But the code is performing the logic only for the first set of lines... > > After the running the above script, the output looks like > > Object1<...tab...>Description1 > > Object2 > Description2 > > Object3 > Description3
Can you post EXACTLY what's in the input file for us? I test with the following input file, I called it object.txt: # cat object.txt Object1 "Description1" Object2 "Description2" Object3 "Description3" I run this command line: # perl -l -00pe's/\n/\t/;s/\"//g' object.txt Object1 Description1 Object2 Description2 Object3 Description3 It's hard to see the tabs, so I tried one with 2 tabs in it for clarity: # perl -l -00pe's/\n/\t\t/;s/\"//g' object.txt Object1 Description1 Object2 Description2 Object3 Description3 So, on my (Solaris 9, Perl 5.6.1) box, it's working. What OS and Perl version are you using and what's your input file look like? --Errin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>