Hackfut Security File Manager
Current Path:
/usr/share/perl5
usr
/
share
/
perl5
/
📁
..
📄
AnyDBM_File.pm
(2.53 KB)
📁
App
📁
Archive
📁
Attribute
📄
AutoLoader.pm
(14.65 KB)
📄
AutoSplit.pm
(19.18 KB)
📁
B
📄
Benchmark.pm
(27.86 KB)
📁
CGI
📄
CGI.pm
(255.35 KB)
📄
CORE.pod
(1.53 KB)
📁
CPAN
📄
CPAN.pm
(144.4 KB)
📁
CPANPLUS
📄
CPANPLUS.pm
(7.1 KB)
📁
Carp
📄
Carp.pm
(7.43 KB)
📁
Class
📁
Config
📄
DB.pm
(18.75 KB)
📁
DBM_Filter
📄
DBM_Filter.pm
(14.08 KB)
📁
Date
📁
Devel
📁
Digest
📄
Digest.pm
(10.17 KB)
📄
DirHandle.pm
(1.89 KB)
📄
Dumpvalue.pm
(16.5 KB)
📁
Encode
📄
English.pm
(4.38 KB)
📄
Env.pm
(5.05 KB)
📄
Expect.pm
(53.44 KB)
📄
Expect.pod
(42.71 KB)
📁
Exporter
📄
Exporter.pm
(18.16 KB)
📁
ExtUtils
📄
Fatal.pm
(40.01 KB)
📁
File
📄
FileCache.pm
(5.44 KB)
📄
FileHandle.pm
(6.62 KB)
📁
Filter
📄
FindBin.pm
(5.53 KB)
📁
Getopt
📁
I18N
📁
IO
📁
IPC
📁
JSON
📁
Locale
📁
Log
📁
Math
📁
Memoize
📄
Memoize.pm
(34.47 KB)
📁
Module
📄
NEXT.pm
(18.05 KB)
📁
Net
📁
Object
📁
Package
📁
Params
📁
Parse
📁
PerlIO
📄
PerlIO.pm
(10.86 KB)
📁
Pod
📄
Safe.pm
(23.76 KB)
📁
Search
📄
SelectSaver.pm
(1.05 KB)
📄
SelfLoader.pm
(16.93 KB)
📄
Shell.pm
(8.48 KB)
📄
Switch.pm
(27.84 KB)
📄
Symbol.pm
(4.68 KB)
📁
TAP
📁
Term
📁
Test
📄
Test.pm
(28.13 KB)
📁
Test2
📄
Test2.pm
(6.24 KB)
📁
Text
📁
Thread
📄
Thread.pm
(8.09 KB)
📁
Tie
📁
Time
📄
UNIVERSAL.pm
(6.38 KB)
📁
Unicode
📁
User
📄
abbrev.pl
(838 B)
📄
assert.pl
(1.27 KB)
📄
attributes.pm
(14.53 KB)
📁
autodie
📄
autodie.pm
(11.49 KB)
📄
autouse.pm
(4.14 KB)
📄
base.pm
(6.82 KB)
📄
bigfloat.pl
(7.2 KB)
📄
bigint.pl
(8.75 KB)
📄
bigint.pm
(17.43 KB)
📄
bignum.pm
(18.24 KB)
📄
bigrat.pl
(4.37 KB)
📄
bigrat.pm
(14.1 KB)
📄
blib.pm
(2.06 KB)
📄
bytes.pm
(2.33 KB)
📄
bytes_heavy.pl
(758 B)
📄
cacheout.pl
(1.1 KB)
📄
charnames.pm
(15.3 KB)
📄
complete.pl
(3.12 KB)
📄
constant.pm
(12.23 KB)
📄
ctime.pl
(1.95 KB)
📄
diagnostics.pm
(16.97 KB)
📄
dotsh.pl
(2.12 KB)
📄
dumpvar.pl
(14.92 KB)
📁
encoding
📄
exceptions.pl
(1.7 KB)
📄
fastcwd.pl
(1019 B)
📄
feature.pm
(4.97 KB)
📄
fields.pm
(9.28 KB)
📄
filetest.pm
(3.91 KB)
📄
find.pl
(1.16 KB)
📄
finddepth.pl
(1.1 KB)
📄
flush.pl
(642 B)
📄
getcwd.pl
(1.39 KB)
📄
getopt.pl
(1.29 KB)
📄
getopts.pl
(1.37 KB)
📄
hostname.pl
(727 B)
📄
if.pm
(1.14 KB)
📄
importenv.pl
(283 B)
📄
integer.pm
(3.19 KB)
📄
less.pm
(3.01 KB)
📄
locale.pm
(820 B)
📄
look.pl
(1.23 KB)
📄
newgetopt.pl
(2.16 KB)
📄
ok.pm
(967 B)
📄
open.pm
(7.56 KB)
📄
open2.pl
(185 B)
📄
open3.pl
(185 B)
📁
overload
📄
overload.pm
(46.92 KB)
📄
overloading.pm
(1.76 KB)
📄
parent.pm
(2.93 KB)
📄
perl5db.pl
(310.24 KB)
📁
pod
📄
pwd.pl
(1.44 KB)
📄
shellwords.pl
(276 B)
📄
sigtrap.pm
(7.43 KB)
📄
sort.pm
(5.95 KB)
📄
stat.pl
(590 B)
📄
strict.pm
(3.63 KB)
📄
subs.pm
(842 B)
📄
syslog.pl
(4.69 KB)
📄
tainted.pl
(164 B)
📄
termcap.pl
(4.02 KB)
📄
timelocal.pl
(690 B)
📁
unicore
📄
utf8.pm
(6.76 KB)
📄
utf8_heavy.pl
(7.81 KB)
📄
validate.pl
(3.64 KB)
📄
vars.pm
(2.3 KB)
📁
vendor_perl
📁
version
📄
vmsish.pm
(4.23 KB)
📁
warnings
📄
warnings.pm
(15.75 KB)
Editing: bigrat.pl
package bigrat; require "bigint.pl"; # # This library is no longer being maintained, and is included for backward # compatibility with Perl 4 programs which may require it. # # In particular, this should not be used as an example of modern Perl # programming techniques. # # Arbitrary size rational math package # # by Mark Biggar # # Input values to these routines consist of strings of the form # m|^\s*[+-]?[\d\s]+(/[\d\s]+)?$|. # Examples: # "+0/1" canonical zero value # "3" canonical value "+3/1" # " -123/123 123" canonical value "-1/1001" # "123 456/7890" canonical value "+20576/1315" # Output values always include a sign and no leading zeros or # white space. # This package makes use of the bigint package. # The string 'NaN' is used to represent the result when input arguments # that are not numbers, as well as the result of dividing by zero and # the sqrt of a negative number. # Extreamly naive algorthims are used. # # Routines provided are: # # rneg(RAT) return RAT negation # rabs(RAT) return RAT absolute value # rcmp(RAT,RAT) return CODE compare numbers (undef,<0,=0,>0) # radd(RAT,RAT) return RAT addition # rsub(RAT,RAT) return RAT subtraction # rmul(RAT,RAT) return RAT multiplication # rdiv(RAT,RAT) return RAT division # rmod(RAT) return (RAT,RAT) integer and fractional parts # rnorm(RAT) return RAT normalization # rsqrt(RAT, cycles) return RAT square root # Convert a number to the canonical string form m|^[+-]\d+/\d+|. sub main'rnorm { #(string) return rat_num local($_) = @_; s/\s+//g; if (m#^([+-]?\d+)(/(\d*[1-9]0*))?$#) { &norm($1, $3 ? $3 : '+1'); } else { 'NaN'; } } # Normalize by reducing to lowest terms sub norm { #(bint, bint) return rat_num local($num,$dom) = @_; if ($num eq 'NaN') { 'NaN'; } elsif ($dom eq 'NaN') { 'NaN'; } elsif ($dom =~ /^[+-]?0+$/) { 'NaN'; } else { local($gcd) = &'bgcd($num,$dom); $gcd =~ s/^-/+/; if ($gcd ne '+1') { $num = &'bdiv($num,$gcd); $dom = &'bdiv($dom,$gcd); } else { $num = &'bnorm($num); $dom = &'bnorm($dom); } substr($dom,$[,1) = ''; "$num/$dom"; } } # negation sub main'rneg { #(rat_num) return rat_num local($_) = &'rnorm(@_); tr/-+/+-/ if ($_ ne '+0/1'); $_; } # absolute value sub main'rabs { #(rat_num) return $rat_num local($_) = &'rnorm(@_); substr($_,$[,1) = '+' unless $_ eq 'NaN'; $_; } # multipication sub main'rmul { #(rat_num, rat_num) return rat_num local($xn,$xd) = split('/',&'rnorm($_[$[])); local($yn,$yd) = split('/',&'rnorm($_[$[+1])); &norm(&'bmul($xn,$yn),&'bmul($xd,$yd)); } # division sub main'rdiv { #(rat_num, rat_num) return rat_num local($xn,$xd) = split('/',&'rnorm($_[$[])); local($yn,$yd) = split('/',&'rnorm($_[$[+1])); &norm(&'bmul($xn,$yd),&'bmul($xd,$yn)); } # addition sub main'radd { #(rat_num, rat_num) return rat_num local($xn,$xd) = split('/',&'rnorm($_[$[])); local($yn,$yd) = split('/',&'rnorm($_[$[+1])); &norm(&'badd(&'bmul($xn,$yd),&'bmul($yn,$xd)),&'bmul($xd,$yd)); } # subtraction sub main'rsub { #(rat_num, rat_num) return rat_num local($xn,$xd) = split('/',&'rnorm($_[$[])); local($yn,$yd) = split('/',&'rnorm($_[$[+1])); &norm(&'bsub(&'bmul($xn,$yd),&'bmul($yn,$xd)),&'bmul($xd,$yd)); } # comparison sub main'rcmp { #(rat_num, rat_num) return cond_code local($xn,$xd) = split('/',&'rnorm($_[$[])); local($yn,$yd) = split('/',&'rnorm($_[$[+1])); &bigint'cmp(&'bmul($xn,$yd),&'bmul($yn,$xd)); } # int and frac parts sub main'rmod { #(rat_num) return (rat_num,rat_num) local($xn,$xd) = split('/',&'rnorm(@_)); local($i,$f) = &'bdiv($xn,$xd); if (wantarray) { ("$i/1", "$f/$xd"); } else { "$i/1"; } } # square root by Newtons method. # cycles specifies the number of iterations default: 5 sub main'rsqrt { #(fnum_str[, cycles]) return fnum_str local($x, $scale) = (&'rnorm($_[$[]), $_[$[+1]); if ($x eq 'NaN') { 'NaN'; } elsif ($x =~ /^-/) { 'NaN'; } else { local($gscale, $guess) = (0, '+1/1'); $scale = 5 if (!$scale); while ($gscale++ < $scale) { $guess = &'rmul(&'radd($guess,&'rdiv($x,$guess)),"+1/2"); } "$guess"; # quotes necessary due to perl bug } } 1;
Upload File
Create Folder