From 6b02695d66cfe4c6a0c94d6291585556cac5a2c3 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Sat, 1 Jan 2011 18:03:30 +0000 Subject: feature-tests: looking at ways to read from a DATA fh, and redirect normal command output so it can be parsed. --- feature-tests/data.pl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 feature-tests/data.pl (limited to 'feature-tests/data.pl') diff --git a/feature-tests/data.pl b/feature-tests/data.pl new file mode 100644 index 0000000..464a148 --- /dev/null +++ b/feature-tests/data.pl @@ -0,0 +1,32 @@ +use strict; +use warnings; + + +use Irssi; +use Irssi::Irc; +use Irssi::TextUI; + +use Data::Dumper; + + +our $VERSION = '0.1'; +our %IRSSI = ( + authors => 'shabble', + contact => 'shabble+irssi@metavore.org', + name => '', + description => '', + license => 'Public Domain', + ); + + +for my $line () { + chomp $line; + Irssi::active_win()->print($line); +} + +__DATA__ +this is a test +so is this. +%rcolour?%n +what +yes -- cgit v1.2.3