Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
This may be a very silly question- I am using a subroutine to search through a list of names. The sub finds correct name and returns it. Everything seems to work fine when I debug until the sub returns the name, then the return value suddenly becomes 1
I am probably just missing something obvious? Any help would be appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Return Value from sub
by daxim (Curate) on Sep 06, 2013 at 09:27 UTC | |
|
Re: Return Value from sub
by Corion (Patriarch) on Sep 06, 2013 at 09:31 UTC | |
by Dr Manhattan (Beadle) on Sep 06, 2013 at 10:10 UTC | |
by Corion (Patriarch) on Sep 06, 2013 at 10:20 UTC | |
by Laurent_R (Canon) on Sep 06, 2013 at 10:16 UTC | |
|
Re: Return Value from sub
by vinoth.ree (Monsignor) on Sep 06, 2013 at 09:28 UTC |