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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top