Re: Cross-referencing RFC 186 with RFC 183 and RFC 79

[email protected] (Nathan Wiger) Thu, 14 Sep 2000 09:03:58 -0700
Newsgroups perl.perl6.language.io
Message-ID <[email protected]>
Glenn Linderman wrote:
> 
> I have a number of scripts that use this sort of facility, using push/shift
> to populate/read the array "file".  These could be made simpler and more
> general by wrapping the array as a file.
> 
> Perhaps the open "handler" stuff could be used to implement this?
> Efficiently?

I think this is a definite possibility:

   $FH = open scalar $myvar;
   print $FH "stuff";

Then the scalar handler would just have to provide the necessary print()
et al methods to do scalar manipulation. Theoretically this can be done
modularly, without having to wedge it into the core binary, while still
being able to get speed benefits.

-Nate