On Tue, Oct 8, 2013 at 9:13 PM, Eric Brine <ikegami@adaelis.com> wrote: > > Does the following make sense? > >>perl -wE"sub foo { bar('a','b'); } sub bar($$) { } foo(); say 'done'" > done > > Another way to look at it: > >>perl -wE"sub bar; sub bar($$) { } say 'done'" > done > >>perl -wE"sub bar($); sub bar($$) { } say 'done'" > Prototype mismatch: sub main::bar ($) vs ($$) at -e line 1. > done > Another example: perl -wE 'sub foo; foo("A", "B", "C"); sub foo($){ say @_;}' IThread Previous | Thread Next