[ create a new paste ] login | about

Link: http://codepad.org/fggJFOt3    [ raw code | output | fork ]

Perl, pasted on Apr 23:
1
2
3
4
5
6
7
8
9
use strict;
use warnings;

%::fnc = (a => sub{}, b => sub{}, c=> sub{});
my @in = ('a', 'b', 'c');

$::fnc{ shift @in }->(@in);

print "@in";


Output:
1
b c


Create a new paste based on this one


Comments: