#!/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);