Exercises, examples and other material relating to training module P214. This topic is presented on public course Perl bootcamp
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.
|Articles and tips on this subject
|Perl course - is it tailored to Linux, or Microsoft Windows?
Sharing an answer to a customer enquiry ...
Q: Is the course tailored to Linux operating system?
A: "Yes and no" is probably the best short answer I can give :-/
Perl is an extremely portable language - so your Perl script will run very much the same way if the host operating system is Linux, Windows, ...
|Running operating system commands in Perl
Perl is excellent "glueware" - a language which can be well used to connect together a whole lot of elements. And one of those elements may be operating system commands run from within the Perl program.
Here are (three!) ways that you can do it - in each case leaving the result of running the commands ...
|Perl for Systems Admin - suid scripts
I've just completed a week teaching Perl to a systems administration team, and most of their work is involved in traversing data logs and system reports and extracting pertinent information / seeing when characteristics change - classic for a Practical Extraction and Reporting Language from which "Perl" ...
Examples from our training material
| system dependent backquotes
| running a series of shell commands
| OS independent admin example - bundling up all training examples after a course
| End of line character conversion - Windows to Linux / Unix
| A template system report summary
| Looking up host by IP address and name
| looking at your perl configuration in detail
| Creating an Excel spread sheet
| extracting from a Word document ready for upload!
| template for faad example
| Example of using registry from Perl
| use of getpwnam for user information
| Using Windows Script to list out special directories
| Windows script - report on a datafile
PicturesA Perl practical
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
How is it so portable?.
Finding out what system your script is running on.
System database enquiries.
How Perl helps on crossplatform requirements.
Text files - end-of-line characters.
Handling Microsoft Word and Excel files in Perl.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
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 700 books on the subjects on which we teach.
These books are available for reference at our training centre.