I am getting zipping error when I try to open the zip file. I want to capture that error msg. Plz help me in doing that. I need the solution in perl.
eg::
gzcat zipfile.gz
gzip: zipfile.gz: unexpected end of file
I want to capture "unexpected end of file" into a variable.
How can I do that in PERL??
Thanks in advance.