On 18 Jul 2001 11:26:45 -0400, Richie Crews wrote:
> Ok I am beating my head why this is not working...
>  
> $fname = <STDIN>;
> chomp $fname;
> $fletter = substr($fname,0,1);
> # now we have the first letter of the first name
> if ( $fletter =~ /[a-f]/i) {
>             print "First letter is a-f\n";
> }
>  
>  
> You get the picture I would have other if's based on the first letter
> however my regex is not working any idea I just need another prospective on
> it.
>  
> Richie Crews
> Unix Systems Administrator
>  
> (706) 773 - 3436 CELL
> (706) 634 - 3681 DESK
> (706) 634 - 3831 FAX
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Disclaimer: Any errors in spelling, tact, or fact are transmission errors
> and not the fault of the sender.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

Hey Richie,

Well, I ran the above code and it works the way I would expect (returns
"First letter is a-f" if the input is a,b,c,d,e,f,A,B,C,D,E, OR F).
What exactly is going wrong on your side?  
  
--
Today is Prickle-Prickle, the 53rd day of Confusion in the YOLD 3167
Wibble.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to