#!/usr/bin/env perl use strict; use warnings; use OpenGL; sub glInit { OpenGL::glpcOpenWindow(); } glInit(); print "Press return to exit\n"; while ( <> ) { exit; } #### Your vendor has not defined OpenGL macro glpcOpenWindow, used at t2.pl line 8.