this is part of my code
I am taking the 3rd element from each line in a file by using foreach loop and I want to take the 2nd charecter from the scalar variable.But I am not abel to access the 2nd element. can any one help me.
@bhits=split(/ /,$line);
$res=$bhits[2];
$value=substr($res,1,1);
When I want to take the 2nd element from the $res it is giving an error like Bareword.
I am taking the 3rd element from each line in a file by using foreach loop and I want to take the 2nd charecter from the scalar variable.But I am not abel to access the 2nd element. can any one help me.
@bhits=split(/ /,$line);
$res=$bhits[2];
$value=substr($res,1,1);
When I want to take the 2nd element from the $res it is giving an error like Bareword.