Hi

Suppose this is the line
after_click_color = cc6600


if I use
@recField=split(/=/,$_);

I will get

$recField[0] as after_click_color
and
$recField[1] as cc6600

If there is space before/after = that will also be involved..What if I don;t 
wanted the space..I wanted to trim out the spaces before and after =

Special case: There may be case like words follwoing ....In those the spaces 
b/w words need not be trimmed..I just wanted the remove the space before and 
after =

after_click_color = This is test

What is the solution

I tried 
$recField[0] =~  s/" "//g;

This is not helping..Please suggest a way...Any functions acailable..

A

Thanks
Anish






Reply via email to