#!/usr/bin/perl use strict; use warnings; use Data::Dumper; sub head1($){shift} sub cut(){'test'} my $x=1; my $y=1; my @z=( $x =head1 'test' ,$y =cut ); print Dumper($x,$y,\@z);