Perl code is remarkably portable, but even with the best will in the world, there are always one or two things to consider if you're writing code that's got to be equally at home on Windows XP, Linux and OS X. This module also covers the use of Perl to access Microsoft-specific DLLs, allowing you to write a program to handle your Word document or Excel spreadsheet directly.
This topic is presented on public course
Perl bootcamp
Examples from our training material
| back | system dependent backquotes |
| blockshell | running a series of shell commands |
| courseend.pl | OS independent admin example - bundling up all training examples after a course |
| cv | End of line character conversion - Windows to Linux / Unix |
| faad | A template system report summary |
| hostinfo | Looking up host by IP address and name |
| info_more | looking at your perl configuration in detail |
| msexcel | Creating an Excel spread sheet |
| msword | extracting from a Word document ready for upload! |
| mytemp | template for faad example |
| registry.pl | Example of using registry from Perl |
| userinfo | use of getpwnam for user information |
| ws1.wsf | Using Windows Script to list out special directories |
| ws2.wsf | Windows script - report on a datafile |
Opentalk forum discussions related to this topic
Setting up multiple directoriesCalling external programsWindows MailerDetecting if file is Macintosh Windows or UnixExecuting External commands on UnixCapturing STDERR with backtics
Pictures
A Perl practical
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
The philosophy.
Why is Perl so portable.
Built in file system commands.
Finding your operating system type.
System database enquiries.
Issue - Operating System command access.
Issue - End-of-line characters.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.