in reply to Re: cgi code line message
in thread cgi code line message

sorry; but I tried your code and it did not work ... error_message( "File can not be opened: Line ". __LINE__. "\n" ); to be correct ... thanks a lot!

Replies are listed 'Best First'.
Re^3: cgi code line message
by davido (Cardinal) on Jun 06, 2005 at 08:28 UTC

    My dumb mistake. Forgot that __LINE__ doesn't (and shouldn't) interpolate. Here ya go...

    error_message( "File cannot be opened: Line " . __LINE__ . "\n" );

    Looks like you already figured it out though. Hope you find it helpful!


    Dave