#!/usr/bin/perl -w use strict; use Data::Dumper; my $test = { test => 1, code => sub { print 'Yeah'; }, aref => [ qw(1 2 3 4 5) ], }; print Dumper($test); #### $VAR1 = { 'code' => sub { "DUMMY" }, 'aref' => [ '1', '2', '3', '4', '5' ], 'test' => 1 };