Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Perl function calls.by toolic (Bishop) |
on Jul 07, 2014 at 14:50 UTC ( [id://1092590]=note: print w/replies, xml ) | Need Help?? |
From perlsub:
If no return is found and if the last statement is an expression, its value is returned. If the last statement is a loop control structure like a foreach or a while , the returned value is unspecified. Since you have a while loop as the last statement, the returned value is undefined. UPDATE: Perl : Convert a monolithic code to a function
In Section
Seekers of Perl Wisdom
|
|