Perl can be used to automate workflow in Surfer. However, our support team is only able to offer help with writing and running scripts using Scripter.
The script grid_data_create_contours.pl grids some data and creates a contour map. In the script, the grid file is saved to the Program Files directory, so you either have to have permission to write to this folder, or you can simply change the folder location.
Some additional sample scripts written in Perl are provided below.