in reply to Forward declaration of subs
>perl -wE"sub foo { bar('a','b'); } sub bar($) { } foo(); say 'done'" done >perl -wE"sub bar($); sub foo { bar('a','b'); } sub bar($) { } foo(); +say 'done'" Too many arguments for main::bar at -e line 1, near "'b')" Execution of -e aborted due to compilation errors.
|
---|
In Section
Seekers of Perl Wisdom