NAME

Tie::Handle::Scalar - Perl extension for tieing a scalar to a filehandle.

SYNOPSIS

use Tie::Handle::Scalar;
my $file = "This is a test";
tie *FH, 'Tie::Handle::Scalar', \$file;
print FH "\nAnother line\n\n\n\n";
while (<FH>) {
    print;
}
untie FH;

DESCRIPTION

WARNING - This ONLY works with perl version 5.6.0< or above. This may be due to interfaces to handles in older versions of perl not being complete ;) Tie::Handle::Scalar allows you to tie a scalar to a filehandle. Supported and unsupported/untested methods are listed below. I wrote this before I realised there were 2 other modules that do something similar.... IO::Stringy and IO::String. These two may work better for you. But I couldn't get either of them to work with Net::FTP as they don't appear to support the FILENO method.

SUPPORTED METHODS

TIEHANDLE
FILENO
WRITE
PRINT
READ
READLINE
CLOSE
DESTROY

UNSUPPORTED/UNTESTED METHODS (to be done).

PRINTF
SYSREAD
SYSWRITE
GETC

And there are a few others I'm sure

AUTHOR

Andy Williams (andy.williams@lampsolutions.co.uk)

REPORTING BUGS

Please direct any bugs/fixes to the author.

SEE ALSO

perl(1). IO::Stringy. IO::String

THANKS

Dave Cross (dave@dave.org.uk) for answering most if not all my questions.

COPYRIGHT

Copyright 2001 Andy Williams. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 150:

'=item' outside of any '=over'

Around line 166:

You forgot a '=back' before '=head1'

Around line 169:

'=item' outside of any '=over'

Around line 180:

You forgot a '=back' before '=head1'