I have no idea what is happeneing.. but I have a 200 line long subroutine for a banner script I am working on
basicly, it checks to see if the banner its getting ready to use is already on the page, and if it is, goes to the next one, and i also have it working in categories, so i am calling the routine with
&banner(category).. and it will return the variables for the first availiable banner for that category. I also have it writing the banner it used to a file.
I may call this routine more than once in my scripts.. and the odd thing about this is.. after I run it more than twice, it always looses $var for some stupid reason.
sub banner {
my $var = shift;
}
and I have no idea why... I do know that I am not altering $var AT ALL during the subroutine, except for the initial $var = shift
I am at a loss, I am willing to put the code for my subroutine up, if there is a suitable place to put 200 lines
of code up.
if you have any ideas at all, please help, thanks
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.