> Hi Javeed ,
>
> the last element of the array is $attt[$#attt]. If you have one line per
> element, that should do it.
Right. This is the easiest way. But, just to answer him, what he could do
using regular expression could be something like:
foreach (@attt) {
    /=/ && ( ($out) = (split (/=/))[1] );
}

Bruno.


>
> R
>
> At 14:24 04/10/2002 +0530, Javeed SAR wrote:
>
> >I have the following output in array @attt
> >I want the last line in a variable $out.
> >What should the regular expression be?
> >
> >
> >attribute type "SYNC_CHECK"
> >   created 04-Oct-02.09:36:42 by javeed.clearuser@BLRK35ED
> >   "for testing"
> >   owner: HIS\javeed
> >   group: HIS\clearuser
> >   scope: this VOB (ordinary type)
> >   value type: string
> >   Attributes:
> >     SYNC_CHECK = "HELLO"
> >
> >
> >Regards
> >j
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to