Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Underscores in numbersby pegasus (Beadle) |
on Apr 12, 2001 at 21:34 UTC ( [id://72112]=perlquestion: print w/replies, xml ) | Need Help?? |
pegasus has asked for the wisdom of the Perl Monks concerning the following question: Hi, I'm working my way through "Learning Perl" and ran into something on page 140, where they discuss modifying timestamps. $atime = $mtime = 700_000_000; This seemed weird to me, so I tried it out.
This works with or without the underscores. I've seen the underscores used in several places (books, articles, etc). What's the significance of the underscores and (since Perl seems to work without them) why do people use them? Is it just a visual convenience?
Back to
Seekers of Perl Wisdom
|
|