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; }
In reply to Subroutine's output as input to a subroutine by props
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |