Okay I will answer your questions, but first I will say, in the way you responded to mine, you have answered it. I was trying to find out if typeglobs were 'evil' and I think you pretty much summed up in few words that they are.
1.You are right, it wasn't doing any good in my example. The intention was to use it in pulling in a config with about 100 variables I though it might be helpful.
2.I didn't intend to make use of the passed parameter in the subroutines yet, it was just a test.
3.I wasn't trying to pass with the typeglob because I thought it was 'cool' I was honestly trying to solve a problem, the problem being passing several variables to a subroutine easily.
4.Also I did follow your suggestion and deleted the useless *$ param and indeed you were correct it still generated the same ouput. Is that not how I would pass the typeglob?
You absolutely did answer my question, I will steer clear of the evil typeglob from this point on.
Thanks so much for the quick and direct response !
-Aseidas
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.