CPAN has many solutions for your problem, search for fixed
Ciao, Valerio
In reply to Re: extract part of line by valdez in thread extract part of line by jdawes