Space proplem

2005-10-14 Thread Martha kavishe
Hi There; i have this problem of space in my program. The program requires a user to send in Either GU1 or TR1. When they send GU1 or TR1 it accepts it and that is fine. But My concern is; if they send GU 1 or TR 1(Leaving spaces before the number) then the program doesn't accept. It goes

Space problem

2005-10-14 Thread Martha kavishe
Hi All, I received some response to my problem but unfortunately my problem isn't solved, I'm still struggling.. Thank you all for your contribution Here is a better short code for the program which gives a clear picture of what I'm trying to ask help for. use DBI; $dsn=