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||updated|
|2825||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, ...
|1702||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 ...
|733||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
|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|
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
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.
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.