D
Deepu
Hi All,
I have $key = "SA-SB-SC-SD" separated by '-'
I am trying to delete SC and the output should be
$test="SA-SB-SD".
But when I do as shown below, the output generated is
$test="SA-SB--SD". I am not getting the reason for getting extra
'-'.
$key="SA-SB-SC-SD";
@test=split(/-/,$key);
Delete $test[1];
$test=join '-',@test;
Print $test;
Thanks for the time.
I have $key = "SA-SB-SC-SD" separated by '-'
I am trying to delete SC and the output should be
$test="SA-SB-SD".
But when I do as shown below, the output generated is
$test="SA-SB--SD". I am not getting the reason for getting extra
'-'.
$key="SA-SB-SC-SD";
@test=split(/-/,$key);
Delete $test[1];
$test=join '-',@test;
Print $test;
Thanks for the time.