Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Yet Another Perl Aptitude Test (yapat)

by tame1 (Pilgrim)
on Feb 28, 2001 at 22:53 UTC ( #61396=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Yet Another Perl Aptitude Test (yapat)
in thread Yet Another Perl Aptitude Test (yapat)

I am coming across the problem now that when I answer a question,
the program tells me I am wrong, no matter what I say.
If I then use the ? to see the "right" answer, it's the same thing I answered!

What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Replies are listed 'Best First'.
Re: Re: Re: Re: Yet Another Perl Aptitude Test (yapat)
by zeno (Friar) on Feb 28, 2001 at 23:21 UTC

    Hi tame1! I'm sorry this is happening. It is possible that you are having a problem because my Windoze machine has put different line feed characters in the program than your machine wants to use. I found that when I carried this over to my linux box, I had to run this one-liner to get it to work:

    perl -p -ibak -e 's/\015//g' yapat.pl

    This removed any funky characters which made the regex fail. Again, I'm really sorry that happened-- tell me if this fixes the problem (and if it doesn't, please tell me too!) Thanks. -zeno

      I am having the same problem, and the one-liner didn't fix it. Suggestions?

        Another common problem is if you just used "cut'n'paste" to grab the script, then you probably introduced leading spaces on the lines. You should probably use the "d/l code" link at the bottom of the node instead (though browsers can be a bit silly about this and it can introduce other problems that way).

        It would probably good to update the script so that it ignores whitespace completely.

                - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2020-09-27 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?