CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
need asap

 



ak_air
New User

Feb 28, 2006, 10:06 PM

Post #1 of 2 (399 views)
need asap Can't Post

Hi,

I want to know the current linenumber in the perl script file.

a beeter detail it is

1..

2..

3..print (some thing)

4..

5..

it should print the line number of that print statement say 3 in the above example

any one can guide me


davorg
Thaumaturge / Moderator

Mar 1, 2006, 5:22 AM

Post #2 of 2 (380 views)
Re: [ak_air] need asap [In reply to] Can't Post

Please use better subject lines for your posts.


Code
print __LINE__;


--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives