Re: How to match string inside of array?



somebody wrote:
> On Fri, 16 Dec 2005 23:19:28 +0000, Jürgen Exner wrote:
>
>> somebody wrote:
>>> How do I check if $myvar matches 'two' in @arr?
>>
>> perldoc -q contains
>
> I don't seem to have that. Is it a separate module?
>
> mybox:> perldoc -q contains
> No documentation for perl FAQ keyword `contains' found

Strange. I get

E:\>perldoc -q contains
Found in E:\[...]\perlfaq4.pod
How can I tell whether a list or array contains a certain element?


jue


.



Relevant Pages

  • Re: Can explain the MAP function more clearly? Thanks
    ... Have you read the documentation? ... >From perldoc -f map: ... Sinan Unur ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: undefined subroutine and prototype mismatch
    ... Matt wrote: ... open a console window and type `perldoc` ... followed by the name of that module, to get the documentation: ... Prev by Date: ...
    (perl.beginners)
  • Re: perl almost an adult? [was: s/// w/o RE]
    ... I couldn't find any reference to the birthdate. ... the answer is right there in perldoc perlre!" ... No documentation for perl function `birthdate' found ... No documentation for perl FAQ keyword `birthdate' found ...
    (perl.beginners)
  • Re: seek/tell usage
    ... perldoc -f seek ... seek(FILE, $curpos, 0); ... is an infinite loop, as there is no condition telling the loop when to ... You want the documentation for seekto explain to ...
    (perl.beginners)
  • Re: perl almost an adult? [was: s/// w/o RE]
    ... the answer is right there in perldoc perlre!" ... > Isn't perl great? ... It's sometimes also usefull to grep through the perl documentation, ... For a more visual browsing experience, ...
    (perl.beginners)