--Warning-- Newbie responding

In what way is it not working?

I may be making the same mistake as you. It looks good to me, excepting
that there's no prompt to tell someone to type in a string. So if it ran
as-is, it would appear to be hanging there, when it's just waiting for
input.

-John



                                                                                       
                            
                    Richie Crews                                                       
                            
                    <rcrews@inter        To:     [EMAIL PROTECTED]                    
                            
                    call.com>            cc:                                           
                            
                                         Subject:     Ok brain fart here...            
                            
                    07/18/01                                                           
                            
                    08:26 AM                                                           
                            
                                                                                       
                            
                                                                                       
                            




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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






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

Reply via email to