Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^8: Weird error log message

by Nik
on Jun 15, 2009 at 13:55 UTC ( #771660=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Weird error log message
in thread Weird error log message

Well maybe it was load s of fun to you but not for me.
Folks at http://forums.devshed.com/perl-programming-6/weird-error-log-message-617961.html were able and did help me identify the error why you thought it was more appropriate to make fun of me.
Nice job.


Comment on Re^8: Weird error log message
Re^9: Weird error log message
by marto (Chancellor) on Jun 15, 2009 at 14:24 UTC

    I'm not sure why you bothered to post this at all, ikegami has shown a great deal of patience, and been very helpful.

    Martin

      Opposed to you in this and other thread which you feel more like attacking me in a way rather that helping find the solution. I respect ikegami and his help to this and other threads of me was very insightfull. I did sense sarcasm in his posts though but as i see it was because he thought that i was misinforming him or trying to play smart.

        "Opposed to you in this and other thread which you feel more like attacking me in a way rather that helping find the solution"

        I've not "attacked" you in this thread, or any other that I can find. If you are going to accuse people of something at least provide some evidence...

        You have been posting here longer than I have, you should know how this works by now, after all, many people have pointed out to you on more than one occasion that you would benefit from learning basic programming and computing skills, and putting more effort into your posts.

        Update:

        "I respect ikegami and his help to this and other threads of me was very insightfull."

        After you said:

        "Well maybe it was load s of fun to you but not for me. Folks at http://forums.devshed.com/perl-programming-6/weird-error-log-message-617961.html were able and did help me identify the error why you thought it was more appropriate to make fun of me. Nice job."

        IMHO this isn't very "respectful"

        Martin

Re^9: Weird error log message
by ikegami (Pope) on Jun 15, 2009 at 14:37 UTC

    I wasn't making fun of you, I was telling you that you should stop giving misinformation to the person trying to help you. If you don't know what the problem is, how are you qualified to determine it's safe to say one thing, mean another and hide yet another.

    I noticed you posted a lot of code in that thread, while not only did you avoid posting code here, you lied about your code in two of your replies to me (if not all three).

      ikegami++,

      Also I noticed that the post on the other site cosists of advice given here, from the CB and your replies (for example).

      Could it be that Nik has taken to posting here in order to have someone else create a coherent question for posting elsewhere?

      Cheers

      Martin

        The advice given by ikegami was informing one but not relevant to solution. I did mentioned it though to the helpers at the other forum so to speed thing up on the solution and avoid repeatition.

        Iam not sure what you mean by your second line, but i am in any way cooperate with someone else to cross post if that is what you mean.
      Maybe i misintepret the meaning of your words "it was loads of fun". I wasnt misinformatign you in any way, why would i want to do that to the very person trying to help me in the first place in this thread(among other times)?
      Sometimes i dotn really know what the problem is but that doesnt stop me to express theories or ideas as to what might be wrong. Iam not determine or 100% certain to what i say i just express a feeling and i was right here to say that the carp module wasnt the case here since that script died instanly.

      I posted code in that thread after i was asked to do so, and i posted also here code by myself to show to you that i have tried uploading a simple test script in case it worked. And of course i meantioned in the other forum our conversation here so to help in this way the other helpers identify the problem more easy. I was told here by another guy that i when i cross post a question i must be relative from one to another, that speeds up solution

      Iam not a liar at all, neither here or my personal life, maybe sometimes people misinterpret me. Its completely insane tryign to lie to someone that is tryiong to help me out on a persoanl matter and iam not insane(i like to think so).
        Not only are you a liar, you are also lazy and a complete moron. All this is clearly evidenced by every single one of your posts as well as the fact that after 617 posts here you still have a negative XP score. The question of your sanity should be answered by a professional, you should consult one asap.

        Maybe i misintepret the meaning of your words "it was loads of fun".

        I was sarcastic.

        I wasnt misinformatign you in any way,

        You'd say one thing, I'd say there's a problem with it, and you'd say "of course I meant I did it right" as opposed to what you said you did. (It turns out the problem was that you didn't.)

Re^9: Weird error log message
by ikegami (Pope) on Jun 15, 2009 at 14:47 UTC

    The problem was that your edited is adding a BOM before the shebang line, so your web server didn't accurately detect the shebang line. "#!" must appear at the very top of the file and it wasn't. The following will remove the UTF-8 BOM from a file:

    perl -i.bak -ple"s/^\xEF\xBB\xBF// if $.==1" script.cgi

    Note that if your source is UTF-8, you should probably use use utf8;.

      Thank you for this info and as you saw in the other forum i was the one that accidentally found this out, after noticing the encoding of the ax2.pl file the helper upload it for mw that worked. Thanks celaring this out for me though.

      I didnt knew that before the shebang line i should have used '#!'. Isnt it enough that it has it in the shebang line as well '#!/usr/bin/perl' ? i tried clciking the link with BOM but it wont load so i still dont know what BOM is and why the webserver on the remote server won't understand it since it runs apche while locally my apache web server does not care as to what encoding i save the file. Works with/withoiut BOM utf8 or as ansi.

      You say that if my script is UTF-8 i probablt have to use use utf8; What do you mena by that? When a script source is considered to be utf-8? I must tell you though that inside my perl scripts i use greek text.

        Isnt it enough that it has it in the shebang line as well '#!/usr/bin/perl' ?

        What's "it"?, the "#!"? No. When I said it has to be the very first thing in the file, I meant it has to be the very first thing in the file.

        $ od -c a.pl 0000000 357 273 277 # ! / u s r / b i n / p +e 0000020 r l \n p r i n t ( " H e l l o 0000040 W o r l d \ n " ) ; \n \n 0000054 $ a.pl -bash: ./a.pl: cannot execute binary file $ perl -i.bak -ple"s/^\xEF\xBB\xBF// if $.==1" a.pl $ od -c a.pl 0000000 # ! / u s r / b i n / p e r l \ +n 0000020 p r i n t ( " H e l l o W o +r 0000040 l d \ n " ) ; \n \n 0000051 $ perl a.pl Hello World

        i tried clciking the link with BOM but it wont load

        It's the Wikipedia page on "byte-order mark". I don't see why you couldn't load it.

        When a script source is considered to be utf-8?

        Either it is or it isn't. There's no "considered" about it. If you saved it using UTF-8 as the encoding, it's UTF-8. If you used another encoding, it isnt.

        But yes, I meant when the source is UTF-8.

        Perl will assume the source is encoded using iso-8859-1 unless use utf8; is used.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-07-11 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (227 votes), past polls