Please show us some effort to learn coding by yourself and ask then if you have problems.
Its in the perlfaq or goggle for "trimming whitespace perl".
UPDATE: an please have a look at the documentation for the commands we've shown you so far.
Cheers Rolf
In reply to Re^3: Read Text line by line & modify with a delimiter
by LanX
in thread Read Text line by line & modify with a delimiter
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |