#!/usr/bin/perl use strict; use warnings; my $fooz = sub { print "Hello, world\n"; }; $foo->();