Discipulus has asked for the wisdom of the Perl Monks concerning the following question:
if @mak contains h1 once the result of the sub but if it contains h1 h1 I find 1+2 times the result of &scanjob(@h1), if i pass h1 h1 h1 it returns 1+2+3 times the return value.@mak=qw(h1 h3 h4); #but also@mak=qw(h1 h2); etc @h1=qw(aaa1 1256 fff); @h2=qw(aaa2 3276 ggg); @h3=qw(aaa3 4860 hhh); @h4=qw(aaa4 6669 iii); foreach $zas(@mak){&scanobj(@$zas)}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: idiotic syntax to pass to a sub
by Abigail-II (Bishop) on Nov 15, 2002 at 13:11 UTC | |
|
Re: idiotic syntax to pass to a sub
by AcidHawk (Vicar) on Nov 15, 2002 at 13:07 UTC | |
by thelenm (Vicar) on Nov 15, 2002 at 16:46 UTC | |
|
Re: idiotic syntax to pass to a sub
by Sihal (Pilgrim) on Nov 15, 2002 at 13:00 UTC |