P is for Practical | |
PerlMonks |
How do I treat a string like a filehandle?by Anonymous Monk |
on Sep 16, 2000 at 00:25 UTC ( [id://32740]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (strings)
I want to be able to play with a string as if it were a I/O stream. You can see this sort of functionality in C++ with sstream, and in Java with StringBuffer*Stream. A simple e.g., I'd love to be able to do something like:
...but on a larger scale. Cheers, - jsproat Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|