Perl is not primarily oriented at graphical processing.
But I would suggest you search for Perl module(s) which interface with OpenGL.
I see there is something called "POGL" (see http://en.wikipedia.org/wiki/Perl_OpenGL); I've never used it but maybe this is what you need.
You'll of course also need (first) a sufficient basics in Perl. (There exist 3-day intensive courses which teach you those basics, and of course there are good books & good online tutorials as well.)