aboutsummaryrefslogtreecommitdiffstats
path: root/feature-tests/test.sub
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-10 22:11:52 +0000
committerTom Feist <shabble@metavore.org>2010-10-10 22:11:52 +0000
commit745b2901e2f635d6a57cbe3e40695a6fe751f97b (patch)
tree9f860e07ceb4182d1a6e19553275060fd401ca67 /feature-tests/test.sub
parentadded a brief proof-of-concept for loading/reloading additional functions on the (diff)
downloadirssi-scripts-745b2901e2f635d6a57cbe3e40695a6fe751f97b.tar.gz
irssi-scripts-745b2901e2f635d6a57cbe3e40695a6fe751f97b.zip
tidied up loading code, added demo of calling func in outer scope
Diffstat (limited to 'feature-tests/test.sub')
-rw-r--r--feature-tests/test.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/feature-tests/test.sub b/feature-tests/test.sub
index 6a24879..350e89d 100644
--- a/feature-tests/test.sub
+++ b/feature-tests/test.sub
@@ -1,6 +1,7 @@
{
'moo' => sub { print "Moo" },
- 'hello' => sub { print join(", ", @_) }
+ 'hello' => sub { print join(", ", @_) },
+ 'inp' => sub { print "input is : ", _input(); },
};