On Nov 6, 2005, at 18:27, Gilles wrote:

Hi,

How to find easily if an element $val is in a given list @list ?

perldoc -q contain

-- fxn

PS: BTW, Perl has lists and arrays, though only arrays can be stored in variables. In that case @list is not a list, it is an array. See perldoc -q difference.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to