i am having a script in which i read a file and store its content in a array.Like
@testListArray=<TEST_LIST>;where TEST_LIST is a handle.
array will have test1 test2. i change to these directories one by one. this is expected behaviour
here there is empty string after test2.
array will have test1 test2 and empty string.now when i try to do change directory for each folder it works fine with both test folders but when it sees empty string it changes directory to home directory in linux, solaris. is there any way i remove this empty string from array so it has only test folder names. i tried with chop(arrayname) but does not seems to work.