Linicks has asked for the wisdom of the Perl Monks concerning the following question:
Hi All
I don't know how perl pre-parses code on the fly - is it quicker (i.e. will perl map out a call to a sub-routine on pre-parse) such as
sudo code if ($debug == "true") { &debugit; # call the routine } or if ($debug == "true") { ** do all the debug code here and/or carry on ** }
Thanks,
Nick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedded function or subroutine - which is better?
by afoken (Chancellor) on Aug 27, 2016 at 17:04 UTC | |
by Linicks (Scribe) on Aug 27, 2016 at 17:31 UTC | |
by Linicks (Scribe) on Aug 27, 2016 at 17:52 UTC | |
|
Re: Embedded function or subroutine - which is better?
by AnomalousMonk (Archbishop) on Aug 27, 2016 at 17:40 UTC | |
|
Re: Embedded function or subroutine - which is better?
by Marshall (Canon) on Aug 27, 2016 at 22:01 UTC | |
|
Re: Embedded function or subroutine - which is better? *UPDATE*
by Linicks (Scribe) on Aug 28, 2016 at 10:59 UTC |