| 1 |
File::SearchPath - Search for a file in a PATH-like environment variable |
| 2 |
|
| 3 |
This module can be used to search for files (which do not have to be |
| 4 |
executable) in a set of directories specified in a PATH-like |
| 5 |
environment variable such as $PATH, $LD_LIBRARY_PATH (or any |
| 6 |
environment variable). |
| 7 |
|
| 8 |
INSTALLATION |
| 9 |
|
| 10 |
% perl Makefile.PL |
| 11 |
% make |
| 12 |
% make test |
| 13 |
% make install |
| 14 |
|
| 15 |
REQUIREMENTS |
| 16 |
|
| 17 |
Should work on any perl. Can use the Env::Path module if it is |
| 18 |
present, else colon-separated path variables are assumed. |
| 19 |
|
| 20 |
SEE ALSO |
| 21 |
|
| 22 |
File::Which, File::Where. |
| 23 |
|
| 24 |
AUTHOR |
| 25 |
|
| 26 |
Tim Jenness E<lt>[email protected]<gt> |
| 27 |
|
| 28 |
Copyright 2005,2006,2008 Particle Physics and Astronomy Research Council. |
| 29 |
Copyright (C) 2009-2010 Science and Technology Facilities Council. |
| 30 |
Copyright (C) 2015 Tim Jenness |
| 31 |
All Rights Reserved. |
| 32 |
|
| 33 |
This program is free software; you can redistribute it and/or modify it under |
| 34 |
the terms of the GNU General Public License as published by the Free Software |
| 35 |
Foundation; either version 2 of the License, or (at your option) any later |
| 36 |
version. |
| 37 |
|
| 38 |
This program is distributed in the hope that it will be useful,but WITHOUT ANY |
| 39 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 40 |
PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 41 |
|
| 42 |
You should have received a copy of the GNU General Public License along with |
| 43 |
this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| 44 |
Place,Suite 330, Boston, MA 02111-1307, USA |
| 45 |
|
| 46 |
CHANGES |
| 47 |
|
| 48 |
v0.06 RT #85529 fixed by Jonathon Scott Duff |
| 49 |
Minor documentation clean up by Jonathan Scott Duff |
| 50 |
|
| 51 |
v0.06 Fix path separator problem on VMS (thanks to Peter Edwards) |
| 52 |
Use Module::Build |
| 53 |
|
| 54 |
v0.05 Fix test for CPAN testers. |
| 55 |
|
| 56 |
v0.03 Fix volume handling (thanks to David Golden). |
| 57 |
|
| 58 |
v0.02 + Add compatibility with Robert Spier's File::SearchPath |
| 59 |
module (that was no longer on CPAN) |
| 60 |
+ If an absolute filename is given, test it and return |
| 61 |
it if it passes those tests (else return undef) |
| 62 |
+ Document returning of undef if no files are found. |
| 63 |
|
| 64 |
V0.001 First version. |