I get lines from the text file and then need to split them into words. So eveything in single or double quotes should be ignored. For example: use line; "$var", print 'comment': "get 'comment % two'" should be inserted in an array as use, line, print . All other just ignored. Also I need to check if % sitting inside single or double quotes (like in the above example)
my @array = $file_line =~ /[\$A-z_]{2,}/g;
gives all the words (plus anything that contains $) but I can't not to ignore characters in the quotes
Any ideas?
Thanks