props has asked for the wisdom of the Perl Monks concerning the following question:
in &testmode the &makeitbig is not returning anything is expecting a value to process.Any Perl technique to tackle this ? Many thankssub makeitbig { if (@_) { $default_value =shift; } else{ return $default_value; } sub testmode { my $random1 = int( rand(&makeitbig()) ); return $random1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine's output as input to a subroutine
by ikegami (Patriarch) on Nov 20, 2007 at 22:42 UTC | |
|
Re: Subroutine's output as input to a subroutine
by shmem (Chancellor) on Nov 20, 2007 at 23:46 UTC | |
|
Re: Subroutine's output as input to a subroutine
by perlfan (Parson) on Nov 20, 2007 at 23:28 UTC |