HOW to run perl scripts and collect data

I have a perl script am trying to run it on (telgraf+Influx+Grafana) to collect data and plot it.Can anyone please help how to do it as am new to grafana. What are the minimum requirements and steps to run the script

Thanks in Advance