We need more information before we can do anything other than guess at solutions (which would be a waste of both our time and yours).
What are the rules that you are following to decide what needs to be extracted? For example, here are some possible rules that yield the behaviour you've asked for in your first example:
Without more information we have no way of knowing which rule you are following.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Extracting substrings from scalars
by davorg
in thread Extracting substrings from scalars
by sanjay nayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |