ckaspar has asked for the wisdom of the Perl Monks concerning the following question:
How would I pass @something to sub second? When would I use the @_ ?sub main { &first; &second; } sub first { some stuff.... return @something; } sub second { I need @something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using return values in subroutines
by merlyn (Sage) on Mar 27, 2006 at 00:35 UTC | |
|
Re: Using return values in subroutines
by sk (Curate) on Mar 27, 2006 at 00:37 UTC | |
|
Re: Using return values in subroutines
by zer (Deacon) on Mar 27, 2006 at 00:38 UTC | |
|
Re: Using return values in subroutines
by GrandFather (Saint) on Mar 27, 2006 at 00:41 UTC | |
|
Re: Using return values in subroutines
by blogical (Pilgrim) on Mar 27, 2006 at 01:42 UTC |