in reply to sub execution order aka missing semicolon after sub call
sub_A(sub_B());
as you can easily verify with B::Deparse:
$ perl -MO=Deparse,-p ~/1.pl sub sub_A { use warnings; use strict; print("sub_A\n"); } sub sub_B { use warnings; use strict; print("sub_B\n"); } use warnings; use strict; sub_A(sub_B());
My advice is you should get into the habit of always using parentheses for function calls.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sub execution order aka missing semicolon after sub call
by jmaas (Initiate) on Apr 06, 2016 at 15:41 UTC | |
by johngg (Canon) on Apr 07, 2016 at 10:41 UTC |