Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:14:58+00:00 2026-06-05T18:14:58+00:00

Can anybody show with some examples the exact difference between .. and … operator?

  • 0

Can anybody show with some examples the exact difference between .. and ... operator?

From the perlop man page:

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.

But what exactly this mean? I don’t understand the perlop’s example:

@lines = ("   - Foo",
          "01 - Bar",
          "1  - Baz",
          "   - Quux"
);
foreach (@lines) {
    if (/0/ .. /1/) {
        print "$_\n";
    }
}

with ... will print the Baz – but why? More precisely, why is Baz not printed with two dots and only with ...?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:15:00+00:00Added an answer on June 5, 2026 at 6:15 pm

    «...» doesn’t do a flop check immediately after a true flip check.

    With «..»,

    1. " - Foo"
      1. /0/ returns false.
      2. .. returns false.
    2. "01 - Bar"
      1. /0/ returns true. Flip!
      2. /1/ returns true. Flop! ⇐
      3. .. returns true (since the first check was true).
    3. "1 - Baz"
      1. /0/ returns false.
      2. .. returns false.
    4. " - Quux"
      1. /0/ returns false.
      2. .. returns false.

    With «...»,

    1. " - Foo"
      1. /0/ returns false.
      2. ... returns false.
    2. "01 - Bar"
      1. /0/ returns true. Flip!
      2. ... returns true.
    3. "1 - Baz"
      1. /1/ returns true. Flop!
      2. ... returns true.
    4. " - Quux"
      1. /0/ returns false.
      2. ... returns false.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody see what is wrong with this code. it does not show up
Can anybody know how to remove all the indexes from database ?
Can anybody guide me in the right direction... I have some folder strucktures that
Can anybody please tell me what is the use of %NOTFOUND operator? We can
Can anybody suggest a nice and clean simple jquery based datagrid, i don't need
Can anybody show an example of how to use heap.heapForEachClass in a select statement?
I am trying to work with wordpress.In our home page how can we show
I am fetching some data from database and want to show these values in
I am using a datatable to show some information on page and I am
I am a newbie wants to start symbian development. Can any body show me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.