Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Problems with CODE tags

by mpolo (Chaplain)
on Jun 06, 2001 at 18:07 UTC ( [id://86210]=monkdiscuss: print w/replies, xml ) Need Help??

Recently several obfuscations have ceased to work correctly, for instance Codici obfuscati and Abberwockyjae by me and *Yawn*, more late night obfu. by lindex (before chipmunk's edit). The problem is linked to the ^M's that are being spit out by the XML generator.

In the case of lindex's code, the ^M at the beginning was causing the problem, and chipmunk was able to suppress this by having the code start directly after the <code> tag. In the case of the two Perligata obfu's I mention, the problem lies in the ^M after the "finis" and before the start of the DATA. I can't seem to find a way to suppress this from within the edit box.

Codici obfuscati actually worked when I first uploaded it, (I downloaded it to check...). Now, however, I get an error (Accusitive not connected at line 20). (The error in the other program complains about "Something barbarous (i.e. punctuation) found" in the DATA lines.) Thus, I assume that this is a recent change, but one that I hope can be fixed.

Replies are listed 'Best First'.
Re: Problems with CODE tags
by ZZamboni (Curate) on Jun 07, 2001 at 00:38 UTC
    I've found this to be a problem with some code too. But there's always:
    perl -pi -e 'tr/\r//d' file.pl
    after you download.

    --ZZamboni

Re: Problems with CODE tags
by Brovnik (Hermit) on Jun 08, 2001 at 23:20 UTC
    I have
    alias chomp="perl -pi -e 'tr/\r//d'"
    defined in .bashrc, then
    chomp download.pl
    Does what I need. (Maybe I should have called it chop).
    --
    Brovnik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found