A good Perl tutorial on OSX can be found here:
http://www.mactech.com/articles/mactech/Vol.18/18.09/PerlforMacOSX/index.html
The general documentation for executing Perl code is, of course, perldoc perlrun .
To answer your question directly:
You can run the perl script on any Unix system, either using code that has been evaluated and executed from the command line:
perl -e 'print "Hello World\n"';
Or you can save your Perl script to a file (usually with the extension .pl , say script1.pl , and the first line is #!/usr/bin/perl ), and then you can execute it like any Unix program (after setting the correct permissions to fulfill)
/path/to/script/script1.pl
You can also execute the script from the file by running the perl interpreter as a command and providing the script as a parameter (in this case, execution permissions for the script are not needed):
perl /path/to/script/script1.pl
DVK Apr 12 2018-10-12T00: 00Z
source share