(If you want people to help you then a good start would be to format your code so that it is readable.)
I think you want something like this (untested):
@val = $num =~ /<member-id>(\d+)/g;
You are currently only asking for one match, so you only get the first one.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Reading a particular values from the file.
by davorg
in thread Reading a particular values from the file.
by anushya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |