1 2 3 4 5 6 7 8 9 10 11
$fetch = sub { 'hello world'; }; $print = sub { print $_[0]; }; $print->( $fetch->( ) ); $fetch = sub { 'hello world'; }; $print = sub { print UC $_[0]; }; $print->( $fetch->( ) );
1
hello world