I have the following condition:

if ( $x =~ /^[one|two|three|four]/ ) { ...}

However, I would like to test for values in an array; for example:

@array = ( "one", "two", "three", "four" );

Can I now write the regexp to pull out the values of the array instead, 
making the regexp flexible depending on the values in the array at the 
time?

Cheers
Ben


---
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]

Reply via email to