[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
perl5
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Attribute
SET
[ DEL ]
📁 B
SET
[ DEL ]
📁 CPAN
SET
[ DEL ]
📁 Class
SET
[ DEL ]
📁 Compress
SET
[ DEL ]
📁 Config
SET
[ DEL ]
📁 DBM_Filter
SET
[ DEL ]
📁 Devel
SET
[ DEL ]
📁 ExtUtils
SET
[ DEL ]
📁 File
SET
[ DEL ]
📁 Getopt
SET
[ DEL ]
📁 I18N
SET
[ DEL ]
📁 IO
SET
[ DEL ]
📁 IPC
SET
[ DEL ]
📁 Locale
SET
[ DEL ]
📁 Math
SET
[ DEL ]
📁 Memoize
SET
[ DEL ]
📁 Module
SET
[ DEL ]
📁 Net
SET
[ DEL ]
📁 Pod
SET
[ DEL ]
📁 Search
SET
[ DEL ]
📁 Term
SET
[ DEL ]
📁 Text
SET
[ DEL ]
📁 Thread
SET
[ DEL ]
📁 Tie
SET
[ DEL ]
📁 Time
SET
[ DEL ]
📁 URI
SET
[ DEL ]
📁 Unicode
SET
[ DEL ]
📁 User
SET
[ DEL ]
📁 encoding
SET
[ DEL ]
📁 overload
SET
[ DEL ]
📁 pod
SET
[ DEL ]
📁 unicore
SET
[ DEL ]
📁 vendor_perl
SET
[ DEL ]
📁 warnings
SET
[ DEL ]
📄 AnyDBM_File.pm
2,618 B
SET
[ EDIT ]
|
[ DEL ]
📄 AutoLoader.pm
15,797 B
SET
[ EDIT ]
|
[ DEL ]
📄 AutoSplit.pm
19,637 B
SET
[ EDIT ]
|
[ DEL ]
📄 Benchmark.pm
31,025 B
SET
[ EDIT ]
|
[ DEL ]
📄 CORE.pod
3,188 B
SET
[ EDIT ]
|
[ DEL ]
📄 DB.pm
18,922 B
SET
[ EDIT ]
|
[ DEL ]
📄 DBM_Filter.pm
14,385 B
SET
[ EDIT ]
|
[ DEL ]
📄 DirHandle.pm
1,556 B
SET
[ EDIT ]
|
[ DEL ]
📄 Dumpvalue.pm
17,556 B
SET
[ EDIT ]
|
[ DEL ]
📄 English.pm
4,761 B
SET
[ EDIT ]
|
[ DEL ]
📄 FileCache.pm
5,572 B
SET
[ EDIT ]
|
[ DEL ]
📄 FileHandle.pm
6,784 B
SET
[ EDIT ]
|
[ DEL ]
📄 FindBin.pm
4,561 B
SET
[ EDIT ]
|
[ DEL ]
📄 Internals.pod
2,576 B
SET
[ EDIT ]
|
[ DEL ]
📄 Memoize.pm
36,192 B
SET
[ EDIT ]
|
[ DEL ]
📄 NEXT.pm
18,846 B
SET
[ EDIT ]
|
[ DEL ]
📄 PerlIO.pm
10,459 B
SET
[ EDIT ]
|
[ DEL ]
📄 Safe.pm
25,082 B
SET
[ EDIT ]
|
[ DEL ]
📄 SelectSaver.pm
1,076 B
SET
[ EDIT ]
|
[ DEL ]
📄 SelfLoader.pm
17,692 B
SET
[ EDIT ]
|
[ DEL ]
📄 Symbol.pm
4,799 B
SET
[ EDIT ]
|
[ DEL ]
📄 Test.pm
30,057 B
SET
[ EDIT ]
|
[ DEL ]
📄 Thread.pm
8,287 B
SET
[ EDIT ]
|
[ DEL ]
📄 UNIVERSAL.pm
6,594 B
SET
[ EDIT ]
|
[ DEL ]
📄 URI.pm
34,790 B
SET
[ EDIT ]
|
[ DEL ]
📄 XSLoader.pm
11,267 B
SET
[ EDIT ]
|
[ DEL ]
📄 _charnames.pm
33,166 B
SET
[ EDIT ]
|
[ DEL ]
📄 autouse.pm
4,238 B
SET
[ EDIT ]
|
[ DEL ]
📄 base.pm
10,980 B
SET
[ EDIT ]
|
[ DEL ]
📄 blib.pm
2,086 B
SET
[ EDIT ]
|
[ DEL ]
📄 bytes.pm
3,754 B
SET
[ EDIT ]
|
[ DEL ]
📄 bytes_heavy.pl
758 B
SET
[ EDIT ]
|
[ DEL ]
📄 charnames.pm
20,867 B
SET
[ EDIT ]
|
[ DEL ]
📄 deprecate.pm
3,079 B
SET
[ EDIT ]
|
[ DEL ]
📄 diagnostics.pm
19,038 B
SET
[ EDIT ]
|
[ DEL ]
📄 dumpvar.pl
15,555 B
SET
[ EDIT ]
|
[ DEL ]
📄 feature.pm
17,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 fields.pm
9,489 B
SET
[ EDIT ]
|
[ DEL ]
📄 filetest.pm
4,003 B
SET
[ EDIT ]
|
[ DEL ]
📄 if.pm
3,340 B
SET
[ EDIT ]
|
[ DEL ]
📄 integer.pm
3,254 B
SET
[ EDIT ]
|
[ DEL ]
📄 less.pm
3,204 B
SET
[ EDIT ]
|
[ DEL ]
📄 locale.pm
4,855 B
SET
[ EDIT ]
|
[ DEL ]
📄 meta_notation.pm
2,117 B
SET
[ EDIT ]
|
[ DEL ]
📄 open.pm
8,021 B
SET
[ EDIT ]
|
[ DEL ]
📄 overload.pm
53,314 B
SET
[ EDIT ]
|
[ DEL ]
📄 overloading.pm
1,808 B
SET
[ EDIT ]
|
[ DEL ]
📄 perl5db.pl
316,420 B
SET
[ EDIT ]
|
[ DEL ]
📄 sigtrap.pm
7,606 B
SET
[ EDIT ]
|
[ DEL ]
📄 sort.pm
6,081 B
SET
[ EDIT ]
|
[ DEL ]
📄 strict.pm
4,738 B
SET
[ EDIT ]
|
[ DEL ]
📄 subs.pm
848 B
SET
[ EDIT ]
|
[ DEL ]
📄 utf8.pm
9,116 B
SET
[ EDIT ]
|
[ DEL ]
📄 utf8_heavy.pl
31,615 B
SET
[ EDIT ]
|
[ DEL ]
📄 vars.pm
2,414 B
SET
[ EDIT ]
|
[ DEL ]
📄 vmsish.pm
4,313 B
SET
[ EDIT ]
|
[ DEL ]
📄 warnings.pm
44,756 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: if.pm
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