Name : perl-File-SafeDO
| |
Version : 0.14
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 5.76
| Date : 2024-08-05 17:44:30
|
Group : Development/Libraries/Perl
| Source RPM : perl-File-SafeDO-0.14-5.76.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : Safer do file for perl
|
Description :
* * $rv = DO($file,[optional] \"no warnings string\");
This is a fancy \'do file\'. It first checks that the file exists and is readable, then does a \'do file\' to pull the variables and subroutines into the current name space. The \'do\' is executed with full perl warnings so that syntax and construct errors are reported to STDERR. A string of *no warnings* may optionally be specified as a second argument. This is equivalent to saying:
no warnings qw(string of no values);
See: man perllexwarnings for a full listing of warning names.
input: file/path/name, [optional] string of \"no\" warnings returns: last value in file or undef on error prints warning
i.e. DO(\'myfile\',\'once redefine\');
This will execute \'myfile\' safely and suppress \'once\' and \'redefine\' warnings to STDERR.
* * $rv = doINCLUDE($file,[optional] \"no warnings string\");
The function is similar to *DO* above with the addition of recursive loads.
Function will recursively load a file which returns a hash pointer with the a key of the form:
\'INCLUDE\' => somefile.
The file which it loads may contain only HASHs or SUBs. The HASH KEYS will be promoted into the parent hash, augmenting and replacing existing keys already present. Subroutines are simply imported into the name space as is the case with a \'do\' or \'require\'.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/openSUSE_Tumbleweed/noarch |