rbala has asked for the wisdom of the Perl Monks concerning the following question:
while running the code, i changed the operator from * to + ie. $n1 + $n2.But still the result is for only multiplication. As far as I understand, no object output file is created during compilation of perl code and While running the code , each line is interpreted and executed before proceeding to next line. So, changes in any line of the code, before the line is interpreted, should be refleceted in output. Is my understanding correct ? Or is there any other way , execution of perl script happens ?$n1=5; #any numeric value $n2=10; #any numeric value $result = $n1 * $n2; print "$result";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl execution
by CountZero (Bishop) on Jul 05, 2012 at 06:44 UTC | |
by Anonymous Monk on Jul 05, 2012 at 14:09 UTC | |
|
Re: Perl execution
by Khen1950fx (Canon) on Jul 05, 2012 at 06:40 UTC | |
|
Re: Perl execution
by davido (Cardinal) on Jul 05, 2012 at 19:11 UTC | |
|
Re: Perl execution
by locked_user sundialsvc4 (Abbot) on Jul 05, 2012 at 14:12 UTC | |
|
Re: Perl execution
by talexb (Chancellor) on Jul 05, 2012 at 18:18 UTC | |
|
Re: Perl execution
by ig (Vicar) on Jul 06, 2012 at 10:20 UTC | |
|
Re: Perl execution
by Marshall (Canon) on Jul 07, 2012 at 00:06 UTC |