OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
perl
/
5.26.1
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/21/2019 03:49:15 PM
rwxr-xr-x
📄
AnyDBM_File.pm
2.56 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
App
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Archive
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Attribute
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
AutoLoader.pm
5.36 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
AutoSplit.pm
19.18 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
B
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Benchmark.pm
30.3 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
CORE.pod
3.11 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
CPAN
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
CPAN.pm
138.12 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Carp
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Carp.pm
19.68 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Class
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Compress
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Config
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
DB.pm
18.48 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
DBM_Filter
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
DBM_Filter.pm
14.05 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Devel
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Digest
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Digest.pm
10.45 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
DirHandle.pm
1.52 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
Dumpvalue.pm
17.14 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Encode
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
English.pm
4.65 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
Env.pm
5.39 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Exporter
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Exporter.pm
2.31 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
ExtUtils
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Fatal.pm
56.91 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
File
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
FileCache.pm
5.44 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
FileHandle.pm
2.06 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Filter
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
FindBin.pm
4.45 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Getopt
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
HTTP
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
I18N
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
IO
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
IPC
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Internals.pod
2.52 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
JSON
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Locale
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Math
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Memoize
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Memoize.pm
35.34 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Module
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
NEXT.pm
18.4 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Net
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Params
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Parse
-
10/21/2019 03:49:15 PM
rwxr-xr-x
📁
Perl
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
PerlIO
-
10/21/2019 03:49:15 PM
rwxr-xr-x
📄
PerlIO.pm
10.21 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Pod
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Safe.pm
24.49 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Search
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
SelectSaver.pm
344 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
SelfLoader.pm
17.28 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
Symbol.pm
2.05 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
TAP
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Term
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Test
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Test.pm
29.35 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Test2
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Test2.pm
6.24 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Text
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Thread
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
Thread.pm
8.09 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Tie
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
Time
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
UNIVERSAL.pm
6.44 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
Unicode
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📁
User
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
XSLoader.pm
3.83 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
_charnames.pm
32.39 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
autodie
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
autodie.pm
12.58 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
autouse.pm
4.14 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
base.pm
8.72 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
bigint.pm
22.85 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
bignum.pm
20.64 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
bigrat.pm
15.78 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
blib.pm
2.04 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
bytes.pm
447 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
bytes_heavy.pl
758 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
charnames.pm
20.38 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
constant.pm
5.6 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
deprecate.pm
3.43 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
diagnostics.pm
18.59 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
dumpvar.pl
15.19 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
encoding
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
experimental.pm
5.66 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
feature.pm
4.39 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
fields.pm
4.9 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
filetest.pm
3.91 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
if.pm
3.26 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
integer.pm
172 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
less.pm
3.13 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
locale.pm
3.34 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
meta_notation.pm
2.07 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
ok.pm
967 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
open.pm
7.83 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
overload
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
overload.pm
4.34 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
overloading.pm
964 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
parent.pm
478 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
perl5db.pl
309.01 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
perlfaq.pm
78 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📁
pod
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
sigtrap.pm
7.43 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
sort.pm
5.94 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
strict.pm
1.57 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
subs.pm
848 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📁
unicore
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
utf8.pm
342 bytes
05/23/2023 05:17:19 PM
rw-r--r--
📄
utf8_heavy.pl
30.87 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
vars.pm
1.12 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
version
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
version.pm
1.67 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
version.pod
9.63 KB
05/23/2023 05:17:19 PM
rw-r--r--
📄
vmsish.pm
4.21 KB
05/23/2023 05:17:19 PM
rw-r--r--
📁
warnings
-
05/09/2024 07:13:15 AM
rwxr-xr-x
📄
warnings.pm
21.44 KB
05/23/2023 05:17:19 PM
rw-r--r--
Editing: if.pm
Close
package if; $VERSION = '0.0606'; sub work { my $method = shift() ? 'import' : 'unimport'; unless (@_ >= 2) { my $type = ($method eq 'import') ? 'use' : 'no'; die "Too few arguments to '$type if' (some code returning an empty list in list context?)" } return unless shift; # CONDITION my $p = $_[0]; # PACKAGE (my $file = "$p.pm") =~ s!::!/!g; require $file; # Works even if $_[0] is a keyword (like open) my $m = $p->can($method); goto &$m if $m; } sub import { shift; unshift @_, 1; goto &work } sub unimport { shift; unshift @_, 0; goto &work } 1; __END__ =head1 NAME if - C<use> a Perl module if a condition holds (also can C<no> a module) =head1 SYNOPSIS use if CONDITION, MODULE => ARGUMENTS; no if CONDITION, MODULE => ARGUMENTS; =head1 DESCRIPTION The C<if> module is used to conditionally load or unload another module. The construct use if CONDITION, MODULE => ARGUMENTS; will load MODULE only if CONDITION evaluates to true. The above statement has no effect unless C<CONDITION> is true. If the CONDITION does evaluate to true, then the above line has the same effect as: use MODULE ARGUMENTS; The use of C<< => >> above provides necessary quoting of C<MODULE>. If you don't use the fat comma (eg you don't have any ARGUMENTS), then you'll need to quote the MODULE. =head2 EXAMPLES The following line is taken from the testsuite for L<File::Map>: use if $^O ne 'MSWin32', POSIX => qw/setlocale LC_ALL/; If run on any operating system other than Windows, this will import the functions C<setlocale> and C<LC_ALL> from L<POSIX>. On Windows it does nothing. The following is used to L<deprecate> core modules beyond a certain version of Perl: use if $] > 5.016, 'deprecate'; This line is taken from L<Text::Soundex> 3.04, and marks it as deprecated beyond Perl 5.16. If you C<use Text::Soundex> in Perl 5.18, for example, and you have used L<warnings>, then you'll get a warning message (the deprecate module looks to see whether the calling module was C<use>'d from a core library directory, and if so, generates a warning), unless you've installed a more recent version of L<Text::Soundex> from CPAN. You can also specify to NOT use something: no if $] ge 5.021_006, warnings => "locale"; This warning category was added in the specified Perl version (a development release). Without the C<'if'>, trying to use it in an earlier release would generate an unknown warning category error. =head1 BUGS The current implementation does not allow specification of the required version of the module. =head1 SEE ALSO L<Module::Requires> can be used to conditionally load one or modules, with constraints based on the version of the module. Unlike C<if> though, L<Module::Requires> is not a core module. L<Module::Load::Conditional> provides a number of functions you can use to query what modules are available, and then load one or more of them at runtime. L<provide> can be used to select one of several possible modules to load, based on what version of Perl is running. =head1 AUTHOR Ilya Zakharevich L<mailto:ilyaz@cpan.org>. =head1 COPYRIGHT AND LICENCE This software is copyright (c) 2002 by Ilya Zakharevich. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut