Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Single code block split into multiple sequential code blocks.

by davido (Cardinal)
on Oct 30, 2014 at 20:48 UTC ( [id://1105676]=note: print w/replies, xml ) Need Help??


in reply to Single code block split into multiple sequential code blocks.

The OP is actually intentionally opening and closing the code blocks several times in his post, apparently to facilitate putting portions of the code in <readmore> tags.

The bug is in how the post is written.

The OP, or a janitor could fix it. Best if the OP does, because a Janitor would have to decide whether to put all the code in readmore tags, or none of it; a decision that the OP probably should be the one to make, if possible.

Update: Here is an example of how one small portion of the original post looked in the OP's textbox when 'submit' was clicked:

const NV nv2 = SvNSIV(b); return nv1 < nv2 ? -1 : nv1 > nv2 ? 1 : 0; } </code> </readmore> <code> void percent2(SV* sv, ...) { I32 i; I32 arrayLen;

Dave

Replies are listed 'Best First'.
Re^2: Single code block split into multiple sequential code blocks.
by BrowserUk (Patriarch) on Oct 30, 2014 at 20:59 UTC
    The OP is actually opening and closing the code blocks several times in his post

    Huh! S'funny, but I assumed that must be the case the 2 or 3 times I've seen this before, but when I was this post was the OPs first and only post, I thought it unlikely that he would have yet discovered readmores yet, hence my post.

    It's a weird thing to do -- put some bits in readmores and some not -- but I guess if that's what the OP wants, he should be allowed to do so.

    Of course, it makes downloaded and running his code a pain, which will probably discourage anyone from trying to help him...


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      I agree on all counts. I might have been suspicious of the cause had I not been able to inspect it as a janitor. In fact, I had already done that before reading this thread, because I was confused about how I should be evaluating the code.

      OP chose strange formatting. It makes it hard for people to see the code as one contiguous element. A Janitor could fix it, but would have to make decisions that are best made by the OP. If the OP doesn't resolve them, someone could send him or her a friendly message mentioning the issue.

      If it were anonymously posted I'd jump right in and fix it because AM can't fix his own posts. Since it was posted from a real account, I prefer to let the OP do the right thing, and step in for the really bad issues.

      The title isn't great either. It's not an Inline-based leak. It's a user-created leak based on his manipulation of perlguts/perlcall/perlapi. Inline just processed the code.


      Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105676]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-16 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found