Re: [PBML] Array
- From: "anil" <n.selvakumar@...>
> Hi All,You can't do that in the regexp. (Well ... you can, if you are very
> $textmatter='sdfjsd fjgj "fig1" jfbj "fig1" fg hjhg "tab1"
> djhdj "tab2" asdjfj "tab1"';
> print "@array";
> OUTPUT: fig1 fig1 tab1 tab2 tab1
> REQUIRED OUTPUT: fig1 tab1 tab2
> I need the first occurance of fig or tab details in the statment. How
> can i do this. Please suggest.
very cheaky. Unless the strings are really huge and contain lots of
repeats I'd rather not go there.)
You have to filter it later.
perldoc -q duplicate
===== Jenda@... === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery