I am new to Perl so this may be a rather simple task, but I have tab delimited text file that I need to parse through(except the comments that have quotations). For example if I have the following data in a text file what would be the best way to write a script that would output the data in a different format shown below?
Input(txt file):
Bob night "schedule is flexible"
Jerry night
Larry day "fixed schedule"
Mary mid
Desired Output:
day Larry
mid Mary
night Bob //Comments if any
night Jerry //Comments if any
Input(txt file):
Bob night "schedule is flexible"
Jerry night
Larry day "fixed schedule"
Mary mid
Desired Output:
day Larry
mid Mary
night Bob //Comments if any
night Jerry //Comments if any