in reply to Extracting formatted text block

Thanks to the monks you responded. I have the following --
_TedPride(); # the above seems to go into an infinite loop. I have to # CTRL-C to exit. I also don't understand the idioms used _jdporter(); # seems neat, but... # the above exits immediately without printing anything _ikegami(); # the only code that thus far prints correctly. # I have to run it against several variations to # confirm its robustness, Btw, I do not understand # $-[1] and $+[1] bit. At first glance I thought it # was a typo! _Zaxo(); # as mentioned by ikegami, exits with # 'x' outside of string in unpack at ... line ... _punkish(); # works, but skips a value or two # Disclaimer: # I tried to be very careful, but I may have copied the code # given above incorrectly
--

when small people start casting long shadows, it is time to go to bed

Replies are listed 'Best First'.
Re^2: Extracting formatted text block
by jdporter (Paladin) on Mar 17, 2005 at 05:56 UTC
    _jdporter(); # seems neat, but... # the above exits immediately without printing anything
    That's because it's reading from <DATA>, but there's no __DATA__ section. I assumed you would append an appropriate __DATA__ section, as you showed in the original post.