Hello Fellow Monks,
I have a couple modules, to control registration/logging in for a cgi page. I've got a module to handle my cookies, a module to handle my database(DBM) stuff, and a module to print out errors for me, along with my .cgi files to pull it all together and print out the website. I'm trying to split the contents of a certain entry in the database into an array, which is then passed to another module, which then passes the array to another module. Can anyone explain how I would do this? I've tried using this:
my @stats = split(/,/,$USERS{$uname . 'stats'});
And then having the second module do something like:
my @stats = Module::SplitEntries;
And then in my final .cgi file, having IT say:
my @stats = OtherModule:GetSplitEntries;
But this does not seem to work. Does anyone know how I would do this?
Thanks,
Spidy
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.