Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
File Locking
Tips and short articles on this subject
Reactive (dynamic) formatting in Perl
Processing all files in a directory - Perl
There is more that one way - Perl
Perl - functions for directory handling
Answering ALL the delegate's Perl questions
Reporting on the 10 largest files or 10 top scores
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P602
Advanced File and Directory Handling
Exercises, examples and other material relating to training module P602. This topic is presented on public courses Perl for Larger Projects, Extra Day

Perl for Larger Projects - Objects, huge data, SQL databases, XML, efficiency and other topics. This advanced course takes the Perl programmer through ...
http://www.wellho.net/course/plfull.html  [course]
Extra Days - Subjects not covered on regular public courses! We offer a wide range of public courses which well cover the training needs of the majority ...
http://www.wellho.net/course/axfull.html  [course]
Perl has many built in functions for file and directory handling and you should use them in preference to shelling out in your scripts because: • ...
http://www.wellho.net/mouth/1225_Per ... dling.html  [short article]
div class= introsubheads WHY DO WE NEED FILE LOCKING BR /div If several processes wish to READ the same data file at the same time, and no process ...
http://www.wellho.net/solutions/general- ... cking.html  [longer article]
From this week's Perl course: opendir(DH, "."); while ($igot = readdir(DH)) {   next if ($igot =~ /^\.{1,2}$/);   print "igot $igot\n"; ...
http://www.wellho.net/mouth/1832_Pro ... -Perl.html  [short article]
During courses, questions arise. "I'll get back to that" could make people feel that I'm brushing something off ... except that I explain, early on, ...
http://www.wellho.net/mouth/975_Answ ... tions.html  [short article]
"There are six ways of doing anything in Perl." So say I on Perl courses and just occasionally I come up with an example that proves it. This one doesn't ...
http://www.wellho.net/mouth/1709_The ... -Perl.html  [short article]

File locking, database file handling, directory manipulation and more. This module also covers Perl's format and write commands used for traditional text formatting applications, but now of specialist interest.

This topic is presented on public courses Perl for Larger Projects, Extra Day

Examples from our training material
bchop   Random access to a file - using a binary chop
flockdemo   Co-operative file locing with flock
ftype   Establishing the type of a file system object
huge   finding lost disc space - hunting for huge files
huge2   A progress line - hunting for huge files
loglook   reading a specific number of bytes
ndd   Accessing NDBM files
nf   Use of $! to find out why an action failed
nopen   $! in a string and a numeric context
pfc   Copying a file block by block
pls   Four ways of finding the contents of a directory
recur   recursively scanning directories
webfiles   Using typeglobs to handle an effective array of files
wr_loop   Using file locking constants
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
Basic file handling.
Opening files.
Reading from file.
Writing to file.
Enquiring about a file.
Other uses of the file interface.
Arrays of file handles.
Directory Handling.
Going recursive.
Random access files.
An example using a sorted, fixed-length record file.
File Locking.
Alternative schemes.
Database files.
Built-in file system handlers.
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 700 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.


© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho