I am having a file that contains different strings, which in turn are name of folders.
For example test. file has:
test0002
intel/drivers/
Here there can be spaces, tabs after folder names (like we can place space after test0002 or it may happen when you edit file in notepad and use same in Unix test0002 becomes test0002^M).
I used chop and chomp to do it. What I did was I read all contents in array then I did chop (or chomp) for each element of array but nothing works. I m unable to remove extra spaces, tabs.
How can this be done to get desired result?
For example test. file has:
test0002
intel/drivers/
Here there can be spaces, tabs after folder names (like we can place space after test0002 or it may happen when you edit file in notepad and use same in Unix test0002 becomes test0002^M).
I used chop and chomp to do it. What I did was I read all contents in array then I did chop (or chomp) for each element of array but nothing works. I m unable to remove extra spaces, tabs.
How can this be done to get desired result?
Comment