Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

A familiar mantra

by belg4mit (Prior)
on Jun 21, 2015 at 17:21 UTC ( #1131352=poem: print w/replies, xml ) Need Help??

do{ } || !do{ };

--
In Bob We Trust, All Others Bring Data.

Replies are listed 'Best First'.
Re: A familiar mantra
by toolic (Bishop) on Jun 21, 2015 at 17:33 UTC
    When I copy this code, the ... shows up as character 0x85, and I get a compile error. If I change to 3 single periods, I get a runtime error. This runs without errors for me:
    do{ } || !do{ };
      The true ellipses were used for aesthetics, the bastard ASCII analog are meant to cause a runtime error. Or, more accurately, an exception… but of course, there is no try ;-)

      --
      In Bob We Trust, All Others Bring Data.

Re: A familiar mantra
by kcott (Chancellor) on Jun 26, 2015 at 21:53 UTC

    Given ... turned up in v5.12 as the Yada Yada Operator, perhaps this (which runs without compile-time or runtime errors):

    do { Yada } or not do { Yada }

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: poem [id://1131352]
Approved by ww
Front-paged by ww
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-12-16 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (457 votes). Check out past polls.

    Notices?