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

Re: Scalar range operator again

by choroba (Chancellor)
on Jul 06, 2012 at 12:04 UTC ( #980244=note: print w/replies, xml ) Need Help??

in reply to Scalar range operator again

Another important part of the documentation:
It is false as long as its left operand is false. Once the left operand is true, the range operator stays true until the right operand is true, AFTER which the range operator becomes false again. It doesn't become false till the next time the range operator is evaluated. It can test the right operand and become false on the same evaluation it became true (as in awk), but it still returns true once. If you don't want it to test the right operand until the next evaluation, as in sed, just use three dots ("...") instead of two.
Running your example with the three dot operator gives the "caqw" result.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980244]
[zentara]: Strange, on clicking a link in a node, I am taken to that node, but my votes and login are lost. Should I post a Permonks Discussion?
[choroba]: that just means someone used a wrong link format
[choroba]: msg them or consider to fix
[zentara]: Gratias
[LanX]: pm != tk ;)
[Corion]: zentara: Most likely they used something like [http://www. node=123456] instead of [id://123456], which uses whatever domain you're visiting from
[LanX]: hmm... Actually this could be used for a phishing exploit ...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-05-26 12:34 GMT
Find Nodes?
    Voting Booth?