After using seek function , I could reuse File handle.
I did not get anything from `wc -l `. I was expecting no of lines and name of file. This $FileHandle is a file handle only.
sh: -c: line 0: `wc -l IO::File=GLOB(0xc7e51d0)', referer: http://1
Is the reason for this error is File handle. I was trying to read no of lines from file handle not file.