5 sub foo { my $bar = sub { 1 } }
6 sub foo { } sub bar { }
8 #-----------------------------------------------------------------------------
14 sub foo { sub bar { 1 } }
15 sub foo { if (1) { do { sub bar { 1 } } } }
17 #-----------------------------------------------------------------------------
19 ##############################################################################
20 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/Subroutines/ProhibitNestedSubs.run $
21 # $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
22 # $Author: clonezone $
24 ##############################################################################
28 # cperl-indent-level: 4
30 # indent-tabs-mode: nil
31 # c-indentation-style: bsd
33 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :