in reply to script to detect spaces

renuka:

OK, what's stopping you?

I'd suggest using a regular expression to handle the brunt of this. You might try reading perldoc perlre for how they work in perl.

...roboticus

When your only tool is a hammer, all problems look like your thumb.