Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

script syntax errors

by perlmaster (Novice)
on Sep 22, 2006 at 23:41 UTC ( [id://574449]=perlquestion: print w/replies, xml ) Need Help??

perlmaster has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: script syntax errors
by chromatic (Archbishop) on Sep 23, 2006 at 00:13 UTC

    You have a syntax error on or near line 6 of your program, just like the error message says. That means that perl doesn't understand you.

    You should probably fix it.

    If you'd like help in fixing it, you should probably post the first dozen lines of your program or so, because we can only guess what the problem is without seeing the code.

Re: script syntax errors
by liverpole (Monsignor) on Sep 23, 2006 at 00:40 UTC
    Hi perlmaster,

    Another thing that will help make your code, or output, more readable is if you wrap it in "code" tags, like this:

    <code>

    Number found where operator expected at activity.pl line 6, ...

    Number found where operator expected at activity.pl line 8, ...

    </code>

    which will make it look like this:

    Number found where operator expected at activity.pl line 6, ... Number found where operator expected at activity.pl line 8, ...

    You can also use <c> and </c> as shorthand for the code tags.

    And don't worry, I had to be instructed about codetags a couple of times until I understood it correctly, when I first joined Perlmonks :-)


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
Re: script syntax errors
by ptum (Priest) on Sep 23, 2006 at 00:40 UTC

    You might also consider the use of code tags:
    <code> ...

    </code>
    ... to format your code so we can easily read it. Many newcomers to the monestary have found How do I post a question effectively? to be very helpful in improving the quality of their early posts and in maximizing the likelihood of help received. :)

    Update: As you can see, the helpfulness of monks here is exceeded only by their speediness ... if you want to answer a question, you'd better be fast, or you'll be scooped by someone a little quicker on the uptake. :)

Re: script syntax errors
by Jenda (Abbot) on Sep 23, 2006 at 19:10 UTC

    Looks to me like you are trying to use C style comments. /* ...*/. This is not the right syntax in Perl, in Perl you denote comments by #. Anything after a # till the end of the line is ignored ... unless of course the # is inside a string or some other construct, similar to // in C.

    There is no counterpart of /*...*/ in Perl.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: script syntax errors
by ayrnieu (Beadle) on Sep 23, 2006 at 02:37 UTC
    Although your optimistic name is charming, I think perhaps that you should go by 'perlnovice' for a while. Also, please ask questions about error messages in the form of "Here is my reduced example code that gives me this error here; why is this code considered erroneous?"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://574449]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found