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


Tie-Handle-Scalar documentation  | view source Contained in the Tie-Handle-Scalar distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

UNSUPPORTED/UNTESTED METHODS (to be done).

Top

And there are a few others I'm sure

AUTHOR

Top

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

REPORTING BUGS

Top

Please direct any bugs/fixes to the author.

SEE ALSO

Top

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

THANKS

Top

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

COPYRIGHT

Top


Tie-Handle-Scalar documentation  | view source Contained in the Tie-Handle-Scalar distribution.