Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: "Indirect" object syntax?

by muba (Priest)
on Nov 24, 2015 at 02:20 UTC ( #1148469=note: print w/replies, xml ) Need Help??


in reply to Re^3: "Indirect" object syntax?
in thread "Indirect" object syntax?

Ah, well then. I must've misunderstood the intention behind your post. My bad.

do('many', 'things', 'now') if ( $ready and $set and $prepared );

could be made even more English-like (Englishy? Englishesque?) if we ignore for a moment that do is a built-in function ;)

do 'many', 'things', 'now' if $ready and $set and $prepared;

And even you prefer the if-this-then-than notation over the that-if-this syntax, there are neat ways:

$ready and $set and $prepared and do 'many', 'things', 'now'; $ready and $set and $prepared? do 'many', 'things', 'now' :() ;

What's funny about that last one is that it's... well... rather Englishy indeed:

(Are you) ready and set and prepared? Do many things now <shocked emoticon>;

Coincidentally (or maybe not, as it's neatly linked to on my homenode), I've asked about the various ways to write conditionals before.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1148469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2019-04-26 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (128 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!