Rob Dixon wrote:
>
> Sudarshan Raghavan wrote:
> > Sachin Hegde wrote:
> > >
> > > <131> if($flds[5] =~ /[a-zA-Z]+/) # Check for a hex number
>
> Also your check for a hex number is wrong - it will be successful if the
> string contains at least one alpha character. Change this for
>
> if ($flds[5] =~ /^[a-z0-9]+$/)
Also wrong. It should be:
if ( $flds[5] =~ /^[a-f0-9]+$/i )
Or:
if ( $flds[5] =~ /^[a-fA-F0-9]+$/ )
:-)
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]