thanks for all the people who answered
> >> i have a @list that contains elements i do not know. i'm using grep to
match
> >> some words inside the @list.
> >> for example:
> >> $match = grep /\d/, @list;
> >> my question is: is there a way to find the element No. eg:
$list[number] of
> >> the latest match?
>
>
> ($first_hit_number) = grep( $list[$_] =~ /\d/, (0..$#list) );
>
> Tim
>
>
>
>
>
>
>
> _________________________________________________________________________
>
> The information contained in this message is intended for the addressee
> only and may contain confidential and/or privileged information.
> If you are not the addressee, please delete this message and notify the
> sender; you should not copy or distribute this message or disclose its
> contents to anyone.
> Any views or opinions expressed in this message are those of the author
> and do not necessarily represent those of WestLB or any of its affiliates.
> No reliance may be placed on this message without written confirmation
> from an authorised representative of its contents.
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]