Example of the operator '..' in scalar context?

P

Peng Yu

I think that list context refers to something link 1..3.

But I'm not sure how to use .. in scalar context and don't understand
what the following paragraph mean in man perlop mean. In the examples
following the following paragraph in man perlop. I don't see which one
is for scalar context. Would you please give me an easy example on how
to use .. in scalar context?

In scalar context, ".." returns a boolean value. The operator
is
bistable, like a flip-flop, and emulates the line-range (comma)
operator of sed, awk, and various editors ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top