Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Bad line numbers .. bad! (__LINE__)

by toolic (Bishop)
on Jul 25, 2013 at 20:09 UTC ( #1046415=note: print w/ replies, xml ) Need Help??


in reply to Bad line numbers .. bad!

Your 1st code snippet prints 5 for me, as expected. I tried it on 2 versions of perl:

This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-li +nux This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-li +nux-thread-multi

Check for unexpected line endings? cat -A


Comment on Re: Bad line numbers .. bad! (__LINE__)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1046415]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-04 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls