hello monks!
I'm not able to find an error..
here the situation:
I have an @mak that can contain values in the form of h1 h2 h3... hn
I have too many different array: @h1 @h2.. @h9
My goal is foreach hn of @mak calling a sub passing to it the corrispective value of @hn (eg: h1 call sub (@h1))
@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)}
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.
open a fishshop?
thanks in advance lor*
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.