Tie

Learn about the tying process in Perl.

Overview

Where overloading allows us to customize the behavior of classes and objects for specific types of coercion, a mechanism called tying allows us to customize the behavior of primitive variables (scalars,
arrays, hashes, and filehandles). Any operation we might perform on a tied variable translates to a specific method call on an object.

Get hands-on with 1200+ tech skills courses.