I am running a Dual G4 with OS X 10.2 and I keep getting this when trying to run sample code from this site.
syntax error at phone.pl line 5, near "+==" "use" not allowed in expression at phone.pl line 19, at end of line BEGIN not safe after errors--compilation aborted at phone.pl line 20.
I am a "serious" newbie, so any help would be welcome. I know that this is something to do with "use" on line 5, but why? Here is a copy of the code to help:
#!/usr/bin/perl -w package Cellular::Automata::1D; #===================================================================== +======== # # $Id: 1D.pm,v 0.01 2001/07/05 20:37:34 mneylon Exp $ # $Revision: 0.01 $ # $Author: mneylon $ # $Date: 2001/07/05 20:37:34 $ # $Log: 1D.pm,v $ # Revision 0.01 2001/07/05 20:37:34 mneylon # Initial Release # # #===================================================================== +======== use strict; use Exporter; use Carp; use Data::Dumper; BEGIN { use Exporter (); use vars qw($VERSION @ISA @EXPORT %EXPORT_TAGS); $VERSION = sprintf( "%d.%02d", q($Revision: 0.01 $) =~ /\s(\d+ +)\.(\d+)/ ); @ISA = qw(Exporter); @EXPORT = qw(); %EXPORT_TAGS = ( ); }

In reply to Help with MAC OS X by pu22l3r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.