Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thanks. This is an example of the $favorites field:
Adam Knowles|||https://www.site.com/?ID=11977|||11977~~~Alex Burleson| +||https://www.site.com/?ID=27627|||27627~~~Billy|||https://www.site.c +om/?ID=18836|||18836~~~Billy|||https://www.site.com/?ID=18836|||18836 +~~~Christopher Duarte|||https://www.site.com/?ID=14713|||14713~~~Dave + Martin|||https://www.site.com/?ID=5590|||5590~~~Drew Rubado|||https: +//www.site.com/?ID=26867|||26867~~~Emily Hanson|||https://www.site.co +m/?ID=6782|||6782~~~James Gehrke|||https://www.site.com/?ID=7834|||78 +34~~~Jeff Banta|||https://www.site.com/?ID=11446|||11446~~~Jeffrey P +Sandoval|||https://www.site.com/?ID=14637|||14637~~~Jesse Bollinger|| +|https://www.site.com/?ID=8034|||8034~~~Jonathan Walker|||https://www +.site.com/?ID=4811|||4811~~~Jordan Hall|||https://www.site.com/?ID=12 +549|||12549~~~Joseph Dodds|||https://www.site.com/?ID=26211|||26211~~ +~Mark Tappan|||https://www.site.com/?ID=5370|||5370~~~Mary Christine +Hammill-Perkins|||https://www.site.com/?ID=15901|||15901~~~Mary E. Bo +esch|||https://www.site.com/?ID=20326|||20326~~~Matthew Smith|||https +://www.site.com/?ID=26752|||26752~~~Matthew Tuggle|||https://www.site +.com/?ID=13170|||13170~~~Moises Cariaso|||https://www.site.com/?ID=27 +397|||27397~~~Nicole Masciola|||https://www.site.com/?ID=27230|||2723 +0~~~Paul Zenns|||https://www.site.com/?ID=8396|||8396~~~Paul Zenns||| +https://www.site.com/?ID=8396|||8396~~~Phillip Scott|||https://www.si +te.com/?ID=5015|||5015~~~Ross Martin|||https://www.site.com/?ID=27192 +|||27192~~~Sam Lavine|||https://www.site.com/?ID=26277|||26277~~~Step +hen Beatty Jr|||https://www.site.com/?ID=10557|||10557~~~TODD A PARTI +N|||https://www.site.com/?ID=21876|||21876~~~
Unfortunately I'm just a hack and I didn't write this. It looks like the last number gets stuffed into the $favnums var and that is stuffed into a cookie. I think it's too long for the cookie to handle if there are more than 25 favorites or so which is why I'm trying to chop it down. I'm sure I'm doing something wrong but none of these suggestions have led me to the answer. I've tried setting a counter to zero and adding one to the counter at the end of the loop and then telling it to stop if it reaches 25, but I must be doing something wrong because it doesn't work. I'll keep trying. Thank you for all who have attempted to help.

In reply to Re^2: Limit loop by htmanning
in thread Limit loop by htmanning

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-24 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found