Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: AI Overlords

by morgon (Curate)
on Mar 10, 2016 at 00:23 UTC ( #1157238=note: print w/replies, xml ) Need Help??

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

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

Is there any way to see how perl attempts to parse a script that eventually turns out not to be valid (B::Deparse will not help then I suppose...)

Replies are listed 'Best First'.
Re^4: AI Overlords
by hippo (Abbot) on Mar 10, 2016 at 23:21 UTC
    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1157238]
[LanX]: hello James
[james28909]: lol
[james28909]: i honestly didnt thin kanyone was going to respond, or was even paying attention :l
[Eily]: well if you say something like that someone has to pay attention by law
[Eily]: Murphy's law to be precise
LanX Anonymous Monks meeting
holli brings cookies to the meeting
[stonecolddevin]: good morning all
[holli]: I'd bring wine but I am dry since two years, so cookies must do
[1nickt]: james28909 I enjoyed your metaphysical wonderings in tghe scientist thread. Also thought your comment about baby crispr students was comment of the year.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-12-13 17:42 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (373 votes). Check out past polls.