in reply to file dies instantly

open returns true if it was successful:
if (open my $fo, '<', $ggg) { # Process the file. } else { # Your code to exit. }

Update: Also note that parts of your code are repeated. That is against the DRY principle. Better:

{ print "'$ggg' is missing:\nEnsure that this file is in the working + dir.\nWe are exiting.\n"; my $answer; while ('q' ne lc $answer) { print "Please press 'q' and Enter to quit\n"; chomp($answer = <STDIN>); } exit; }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ