Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: AI Overlords

by hippo (Canon)
on Mar 10, 2016 at 23:21 UTC ( #1157370=note: print w/replies, xml ) Need Help??


in reply to Re^3: AI Overlords
in thread AI Overlords

I was surprised that it would not bail out at the full-stops.

The full stop is the concatenation operator. This is valid perl:

$ perl -ce 'a . b;' -e syntax OK

If your only punctuation is the full stop and the comma you can get away with most things. Just avoid reserved words near punctuation.

$ perl -ce 'Twas brillig, and the slithy toves Did gyre and gimble in +the wabe; All mimsy were the borogoves, And the mome raths outgrabe' -e syntax OK

Of course, you couldn't end that with a full stop because it's a binary operator. HTH

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-08-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (171 votes). Check out past polls.

    Notices?