I have not touched CGI for years. Does the "CGI Perl" function as the normal Perl? If yes, you can consider using RTC OSLC/REST API. Search "RTC OSLC Perl", or "RTC REST Perl" and you will get plenty of hits.
Joseph Simon Arokiaraj selected this answer as the correct answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.