in reply to Sub Definitions Within Subs: Best Way to Exploit

The fact that your sample text shows "world!" twice proves that bar() is not truly "inside" foo(). The normal scope rules do not come into play.

If you truly want to keep a lexical sub, you should build it into a coderef:
sub foo { my $bar = sub { print "world!\n" }; print "Hello\n"; &$bar; #also can be written as: $bar->(); } foo(); #&$bar here will not work since $bar is only valid inside foo.
update: Please note that there are some great examples of using nested subs to create closures, especially a great example on using this technique to create a static variable. This can be very useful if a certain sub should set a global value once and only once, so it computes the value and then creates an accessor routine that refers to the variable.

Although stylistically I think you'd only want to do this if you were going to create a bunch of them (as in tilly's masterful Why I Like Functional Programming). Having a bunch of closures running around could make it hard to remember what's where and why. :)