Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: The Scalar Range Operator

by PipTigger (Hermit)
on May 31, 2016 at 15:32 UTC ( #1164606=note: print w/replies, xml ) Need Help??


in reply to The Scalar Range Operator

Hi pbeckingham.

Thank you for posting such an informative explanation!

After reading and running your examples, I've noticed two minor discrepancies between the descriptions. These might cause some confusion (especially for anyone who can't easily run the examples).

In your first section on 'Numeric Values' the very next sentence after the program listing says "second and third line of the data" which should include "fourth" also (to match the just preceding __OUTPUT__ block).

Then in your third section on 'Numeric and Regular Expressions' the second sentence says "the lines from $. == 1" which should be 2 like the $left side of the following range operator.

I hope that helps a bit.

PeaceOut - Pip@CPAN.Org

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1164606]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2018-07-22 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (451 votes). Check out past polls.

    Notices?