Adding to the points made by
wfsp, your
sub tester as posted doesn't look as if it will compile as you have a mismatch with your braces (too many of the right-hand type). I don't know what tools you use to develop your code but an editor that shows matching parentheses and braces can be very useful when trying to weed out this sort of error. I use
nedit
Staying with tester, what are you actually trying to iterate over with foreach $new_marker(%HoHMarker) { ...? You can't really iterate over a hash like that; do you mean to iterate over an array contained in that hash?
Without wanting to re-ignite a religeous war, your use of <TABS> to indent your code makes life difficult unless you are working in Super Panorama. Also, indenting only really works if it is applied consistently.
For your user-determined variable names, use a hash.
@{ $userHash{ $newName } } = @array;
I hope this is useful.
Cheers,
JohnGG
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.