in reply to Splitting on double quotes
Or, if you want to have quotes escaped with a backslash:my($type,$make,$color)=$line=~/"([^"]*)"/g;
BTW: split(); alone can be used for the return list if assigned to @_ implicitly. The behaviour is deprecated though...my($type,$make,$color)=$line=~/"((?:[^"\\]*|\\"?)*)"/g;
|
|---|