So, what happens if line 8 (my $ppt = $PowerPoint->Presentations->Open('C:\Users\sumit\Desktop\test\Presentation1.ppt');) fails? You really do need to check for errors after trying to open files, you never know what might have happened unless you check.