Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by toolic (Chancellor)
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 romping around the Monastery: (7)
As of 2014-07-24 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls