File: anon.t

package info (click to toggle)
libsignatures-perl 0.05-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 340 kB
  • ctags: 816
  • sloc: perl: 1,227; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
use strict;
use warnings;
use Test::More tests => 1;

use signatures;

my $foo = sub ($bar, $baz) { return "${bar}-${baz}" };

is($foo->(qw/bar baz/), 'bar-baz');