Hi all ,
I am using Error.pm for error handling in perl .
try , catch & finally are working fine , but when i try to catch errors with Error::IO it is giiving me error as follows "not able to find Error:IO"
When I opened Error.pm , I saw that Error::IO was missing .
Could any one let me know the correct site from where I can get Error.pm .
I took Error.pm from cpan site
http://search.cpan.org/src/SHLOMIF/Error-0.17/lib/Error.pmBelow is my perl program
#!D:\G_DUMP\CMS\IWOV_Dump\iw-perl\bin\iwperl
use Error qw(:try);
try {
open (HANDLE , "test.txt");
print $var
}
catch Error::IO with
{
print "File does not exsists";
}
finally
{
print "finally";
}
Regards
Rohit Pathak