Here's the split way:
($e, $a, $b, $c, $d) = split (/[(),]/, q{write("thepath",8'h44,status,"info")});But you could also use capture groups or a CSV parser or whatever is most appropriate for your data population rather than this single given example.
In reply to Re: how to read words in a line into separate variables
by hippo
in thread how to read words in a line into separate variables
by jag194u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |