1Tie::StdHandle(3pm) Perl Programmers Reference Guide Tie::StdHandle(3pm)
2
3
4
6 Tie::StdHandle - base class definitions for tied handles
7
9 package NewHandle;
10 require Tie::Handle;
11
12 @ISA = qw(Tie::Handle);
13
14 sub READ { ... } # Provide a needed method
15 sub TIEHANDLE { ... } # Overrides inherited method
16
17
18 package main;
19
20 tie *FH, 'NewHandle';
21
23 The Tie::StdHandle package provide most methods for file handles
24 described in perltie (the exceptions are "UNTIE" and "DESTROY"). It
25 causes tied file handles to behave exactly like standard file handles
26 and allow for selective overwriting of methods.
27
28
29
30perl v5.36.0 2022-08-30 Tie::StdHandle(3pm)