if (a == b)
{
eval "require IO::Compress::Gzip qw(gzip)";
}
This is what I did to include gzip based on a condition, but at run time it gives error as below
Can't locate object method "gzip" via package "IO::Handle" (perhaps you forgot to load "IO::Handle"?)
Any help please? thanks.