Don't ask to ask, just ask | |
PerlMonks |
Re: how to read words in a line into separate variablesby kroach (Pilgrim) |
on May 27, 2015 at 20:20 UTC ( [id://1128069]=note: print w/replies, xml ) | Need Help?? |
You can use a regular expression with capture groups in list context:
I don't know the exact format of your data, so I used non-greedy anything match (.+?). It's better to adjust the expression to the format as strictly as possible, though.
In Section
Seekers of Perl Wisdom
|
|