in reply to Fatal error only in debug modus

If you make a syntax error in print "X", for example leaving out one of the quotes, it is reported as an error in line 1. So line 0 errors must occur before getting to the expression to evaluate.

I would check if you have aliased the perl command in some way.

$ alias perl perl: alias not found

But you may find it defined to something, possibly involving -e'0=1'.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Replies are listed 'Best First'.
Re^2: Fatal error only in debug modus
by Argel (Prior) on Dec 28, 2010 at 18:58 UTC
    Okay, I'll bite --- why would someone want to alias it like that? An obfuscated way to prevent users from running Perl? Practical joke (that would be a good one, might have to remember this one for April 1st)?

    Elda Taluta; Sarks Sark; Ark Arks

Re^2: Fatal error only in debug modus
by Ben Win Lue (Friar) on Dec 29, 2010 at 07:59 UTC
    Thank you, brethren,
    for at least having a look at my problem.

    But noboday played an Aprils fool on me, there is no alias. Anyway, with that alias the error should occur without "-d" switch, too.

    Well, I already gave up looking for the reason of the debugging error and I'm spicing my beautiful code with nasty log prints. This way I might not need the debugger.

    Cheers and happy new year!