if($data =~ /(^\.def)[.+]\.\.$/smx){ $data =~ s/(^\. \w+ \s )(\w+)(\s+)(.+)(^\. \.$)/$2,$4/smx){ print "This is Macro $data \n"; } #### .define get_input select key, key1, key2, passkey3, passkey4, print_name into input_booking_seq, fax_header, file_no, input_print_rates, myNoteId, print_name from ed_table where ed_table.tag = 'BOOK' and ed_table.key = 'PRINT' and ed_table.user_id = user ..