The script splits two filenames out of a line of text; now it needs to handle long filenames within quotes, where a space was previously the delimiter.
Many thanks
Alan
$TheLine = "REFERENCE z:/bin/JAnalyzer/fred.lst package/fred.lst"; $TheLine =~ /(\S*)\s+(\S*)\s+(\S*)\s*/; print "1 is $1 and 2 is $2 and 3 is $3\n"; $TheLine = 'REFERENCE "z:/bin/JAnalyzer/Justice Analyzer Users Guide.p +df" "package/Justice Analyzer Users Guide.pdf"'; $TheLine =~ /(\S*)\s+(\S*)\s+(\S*)\s*/; print "1 is $1 and 2 is $2 and 3 is $3\n"; #hmmm
In reply to newbie parsing question by anadem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |