File::pfopen - Try hard to find a file
Version 0.03
Look in a list of directories for a file with an optional list of suffixes.
use File::pfopen 'pfopen';
($fh, $filename) = pfopen('/tmp:/var/tmp:/home/njh/tmp', 'foo', 'txt:bin');
$fh = pfopen('/tmp:/var/tmp:/home/njh/tmp', 'foo', '<');
If mode (argument 4) isn't given, the file is open read/write ('+<')
Nigel Horne, <njh at bandsman.co.uk>
Doesn't play well in taint mode.
Using the colon separator can cause confusion on Windows.
Would be better if the mode and suffixes options were the other way around, but it's too late to change that now.
Please report any bugs or feature requests to bug-file-pfopen at rt.cpan.org
,
or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-pfopen.
I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc File::pfopen
You can also look for information at:
-
MetaCPAN
-
RT: CPAN's request tracker
-
CPANTS
-
CPAN Testers' Matrix
-
CPAN Testers Dependencies
Copyright 2017-2024 Nigel Horne.
Usage is subject to licence terms.
The licence terms of this software are as follows:
* Personal single user, single computer use: GPL2 * All other users (including Commercial, Charity, Educational, Government) must apply in writing for a licence for use from Nigel Horne at the above e-mail.