http://www.perlmonks.org?node_id=990760


in reply to Bareword found error on MacOS

OS shouldn't matter; more germane would be the versions of Perl involved on both sides (i.e. what does perl -v print on the wintendo box and on the Mac box).

Update: Not to mention the spurious r modifier on the regex probably doesn't help.

Update further: OK, so apparently that's a new modifier looks like in 5.14, which probably explains your problems. I get a gripe from my 5.12.4 too so probably you've got 5.14 or newer on your wintendo box and something before that on your mac. Teach me to go play over in clojure land I guess.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Bareword found error on MacOS
by zuma53 (Beadle) on Aug 31, 2012 at 05:40 UTC

    Yessss!

    You identified the problem right off. My Mac was running 5.12. I got another copy from ActiveState and it runs with no issues.

    Thanks to everyone for your help!

Re^2: Bareword found error on MacOS
by zuma53 (Beadle) on Aug 30, 2012 at 14:18 UTC

    Win: 5.14


    I will have to get back to you on the Mac version, as my laptop is at home.

Re^2: Bareword found error on MacOS
by Anonymous Monk on Aug 30, 2012 at 14:19 UTC

    Update: Not to mention the spurious r modifier on the regex probably doesn't help.

    Welcome to perl 5.14