[ 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.20
[ 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: NewSubst.pm
package NewSubst ; use Filter::Util::Call ; use Carp ; use strict ; use warnings ; sub import { my ($self, $start, $stop, $from, $to) = @_ ; my ($found) = 0 ; croak("usage: use Subst qw(start stop from to)") unless @_ == 5 ; filter_add( sub { my ($status) ; if (($status = filter_read()) > 0) { $found = 1 if $found == 0 and /$start/ ; if ($found) { s/$from/$to/ ; filter_del() if /$stop/ ; } } $status ; } ) } 1 ;