Path: utzoo!attcan!uunet!etnibsd!vsh From: vsh@etnibsd.UUCP (Steve Harris) Newsgroups: comp.lang.perl Subject: wishlist: current line number variable Message-ID: <1131@etnibsd.UUCP> Date: 18 Jul 90 15:24:16 GMT Organization: Eaton Corp, Semiconductor Equipment Div., Beverly, MA Lines: 10 When the "warn" or "die" function is executed, a message is written to STDERR which includes the current line number of the perl script. Is there any way to access this number -- i.e., is there a special perl variable (or compile-time hook) which evaluates to the current line number of the perl script? Such a feature would be useful for writing one's own warn or die subroutines. -- Steve Harris - Eaton Corp. - Beverly, MA - uunet!etnibsd!vsh