Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi jimhenry, To try to help you, I thought I would run your program and see how the execution differs from what's expected.

I quickly realized that you omit any of the code in the main program.

Well that shouldn't take me too much more work, I'll just see what you wrote (something about text files), and see if I can cobble together something small that calls slow_print.

Then I looked at slow_print, and saw that it depends on an externally defined array called @paras, an external variable $rewrap_margin, and at least two external subroutines, rewrap and handle_keystroke.  (By "external", I mean external to what you gave us; maybe in the main program or some library?).

My point is, I've now lost interest.  There are plenty of other questions where the poster is giving enough information for me to get to the fun stuff; the actual sleuthing of the problem.  To do that with your code one has to anticipate the definitions of two other data structures and two other subroutines, as well as guess how you might have called this subroutine.  Sorry, but that's work!

Please consider providing a small, standalone program which runs on its own, and illustrates the problem.  Then I'll be glad to come back and take a look, knowing that I can dive right into solving the problem.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

In reply to Re: Problem with ReadKey by liverpole
in thread Problem with ReadKey by jimhenry

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 browsing the Monastery: (5)
As of 2024-04-18 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found