Skip to content

jaffa4/string-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String::Stream

Stream into a string or from a string. Use print, say to direct output into a string.

Usage

my $t = String::Stream.new(); # for both input and output

print $t: "something";


say $t: "something else";

$*IN = Stream.new("puccini");

my $out = say prompt "composer> "; # $out will contain puccini.

print $t.buffer;
somethingsomething else

Similar module

https://github.com/sergot/IO-Capture-Simple

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%