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

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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2023-02-08 23:23 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (44 votes). Check out past polls.