StringHandleTier - implementation class to which file handles are tied. See TaskForest::StringHandle;
my $obj = tie(*STDOUT, 'TaskForest::StringHandleTier'); # STDOUT is now tied to the class print "Booyah!"; # @$obj is ['Booyah!'] $data = $obj->getData; # $data eq 'Booyah!' undef $obj; # get rid of reference to STDOUT untie(*STDOUT); # STDOUT is 'back to normal' print "Hello, world!\n"; # printed to stdout
To install TaskForest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TaskForest
CPAN shell
perl -MCPAN -e shell install TaskForest
For more information on module installation, please visit the detailed CPAN module installation guide.