It is important that to take great care when posting code which relies heavily on exact duplication, as
<CODE> stuff here </CODE>
is not the same as
<CODE>
stuff here </CODE>
In addition to that, if you hit the d/l code link, perlmonks will print all the stuff in-between code tags, but it will also tack on 3 newlines at the end, but in this case, it doesn't matter.

Your code works as advertised, given that you didn't have beginning whitespace, and that the "d/l code" link was clicked.

If you go ahead and click "d/l code" on my post, you can see that it works.

++ Nice job (worked on win32 and cygwin)

undef$/ ; open ( d , $0 ) ; $_= <d> ; close ( d ) ;s/[^\n ]//g ; s/ /0/g ; s/\n/1/g ; for $i ( 0 .. 23 ) { $a = substr ( $_ , 5 * $i , 5 ) ; print ( chr ( $a=~/0{5}/?32:(96+oct("0b$a")) ) ) }; #################### ################# NOTE, THERE IS NOTHING BEFORE ################# undef$/ ; ################# IT IS THE FIRST LINE __END__ invoking perl f>>f yields (given you call your file f) just another perl hacker

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: the meaning of space by PodMaster
in thread the meaning of space by mayaTheCat

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.