Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Pixel art

by FloydATC (Hermit)
on May 19, 2012 at 19:41 UTC ( #971438=note: print w/ replies, xml ) Need Help??


in reply to Pixel art

Out of curiosity I used the 'download' link and tested it using Strawberry Perl but got the following:

Bareword found where operator expected at ob.pl line 21, near "qw`&JAP +X]//gr" (Might be a runaway multi-line // string starting on line 19) Can't modify constant item in substitution (s///) at ob.pl line 32, ne +ar "qw`&JA PX]//gr#xP/ #MP[\J]PEFXGHIP/ #MP{}JP P__/ #MZPAC| #MPDB/ #MZP| #MP| #Mw| #Mw| #M/ #/ # " syntax error at ob.pl line 32, near "qw`&JAPX]//gr#xP/ #MP[\J]PEFXGHIP/ #MP{}JP P__/ #MZPAC| #MPDB/ #MZP| #MP| #Mw| #Mw| #M/ #/ # " Execution of ob.pl aborted due to compilation errors.

Did the closing quote mark was lost somewhere underway? I'm not ashamed to say I don't really understand what's going on here :-)

-- Time flies when you don't know what you're doing


Comment on Re: Pixel art
Download Code
Re^2: Pixel art
by Grimy (Pilgrim) on May 19, 2012 at 21:18 UTC
    Your version of perl seems to believe that the s/// ends right before the qw`, which is wrong. The qw` is supposed to be inside the s///, that's why there's no need for a closing backtick. I must admit I have no idea why it doesn't work for you. I tested both the download link and the copy-paste with Strawberry Perl 5.14.2. Here is a (hopefully) more compatible version, thanks to Anonymous :
    $_='ope n P+I0;priPnt (HP PIS"\Ubm",pac kH"xP8Il2sK4Ia*(\u hH24PI)K*",74,1I2,2 4H,PHPIL32,1K,4,unIpa cHk(PHPLu=>uc"Kp_/s[I^ -HjPH=PL0d7l3+iK?,v_r kHoPH3[ParLue=anKzg%7= uH)<=y;/_"P),LsortK{ope nH*S,">BHB BL$0.bmPp"} gHrep{s/BN\ BLS/P\t/ ;Hs/.\Bn N BP/\ tH/,unBt N BHil !sH/(.)B[^N BH\h \JPHUb- BqO H]/$ 1JP$H1/B}QO H<0> )JAPH;#UNQ HeaP| &J~~PH';s H[A-R| &~J]|PHq###%jAPHeg ;my$JAPH=eval.'P/ \MP@%J+P__H::$P/ |MPTUJP P___ |MAPZX| \MPWY| |MAP| \MP| |Mw| |Mw/ |M/ |/ '
    If you're curious enough, you might try it. You may also try replacing eval with print, this should print some human-readable code to STDOUT.
        Oh yeah. That.
        /r is so immensely useful that I didn't remember it wasn't here in the first place.
        Well, problem soved, thanks a lot! I updated my previous node.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2014-09-17 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (91 votes), past polls