__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
package Tie::StdHandle;
use strict;
use Tie::Handle;
our @ISA = 'Tie::Handle';
our $VERSION = '4.6';
=head1 NAME
Tie::StdHandle - base class definitions for tied handles
=head1 SYNOPSIS
package NewHandle;
require Tie::Handle;
@ISA = qw(Tie::Handle);
sub READ { ... } # Provide a needed method
sub TIEHANDLE { ... } # Overrides inherited method
package main;
tie *FH, 'NewHandle';
=head1 DESCRIPTION
The B<Tie::StdHandle> package provide most methods for file handles described
in L<perltie> (the exceptions are C<UNTIE> and C<DESTROY>). It causes tied
file handles to behave exactly like standard file handles and allow for
selective overwriting of methods.
=cut
sub TIEHANDLE
{
my $class = shift;
my $fh = \do { local *HANDLE};
bless $fh,$class;
$fh->OPEN(@_) if (@_);
return $fh;
}
sub EOF { eof($_[0]) }
sub TELL { tell($_[0]) }
sub FILENO { fileno($_[0]) }
sub SEEK { seek($_[0],$_[1],$_[2]) }
sub CLOSE { close($_[0]) }
sub BINMODE { &CORE::binmode(shift, @_) }
sub OPEN
{
$_[0]->CLOSE if defined($_[0]->FILENO);
@_ == 2 ? open($_[0], $_[1]) : open($_[0], $_[1], $_[2]);
}
sub READ { &CORE::read(shift, \shift, @_) }
sub READLINE { my $fh = $_[0]; <$fh> }
sub GETC { getc($_[0]) }
sub WRITE
{
my $fh = $_[0];
local $\; # don't print any line terminator
print $fh substr($_[1], $_[3], $_[2]);
}
1;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Hash | Folder | 0755 |
|
|
| Array.pm | File | 7.13 KB | 0644 |
|
| File.pm | File | 75.6 KB | 0644 |
|
| Handle.pm | File | 4.11 KB | 0644 |
|
| Hash.pm | File | 7.48 KB | 0644 |
|
| Memoize.pm | File | 4.15 KB | 0644 |
|
| RefHash.pm | File | 8.7 KB | 0644 |
|
| Scalar.pm | File | 4.07 KB | 0644 |
|
| StdHandle.pm | File | 1.36 KB | 0644 |
|
| SubstrHash.pm | File | 5.87 KB | 0644 |
|