Skip to content

nigelhorne/File-pfopen

Repository files navigation

Linux Build Status Windows Build status Dependency Status Coverage Status Kritika Analysis Status

NAME

File::pfopen - Try hard to find a file

VERSION

Version 0.03

SUBROUTINES/METHODS

pfopen

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 ('+<')

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc File::pfopen

You can also look for information at:

LICENSE AND COPYRIGHT

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.

About

Try hard to find a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages