> Hi,

'Lo

> When debugging scripts it'd be nice to:
>       print $LN, $somedata;
> where $LN is the line number of the print statement.
> 
> There doesn't seem to be a special variable for the line number. Or is there an 
>other trick ?

Try a global special constant? Nutshell, 1st ed. says:

    __LINE__

    Represents the current line number. Not interpolated into strings.

There are also __FILE__ and __PACKAGE__.

(and __END__, which, although it doesn't really seem like a constant,
does have some interesting other effects.)

> Thanks

HTH

-- 
Joel Rees <[EMAIL PROTECTED]>

Reply via email to