Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Little annoying mistakes ... of others

by matze77 (Friar)
on Dec 07, 2008 at 09:58 UTC ( [id://728683]=note: print w/replies, xml ) Need Help??


in reply to Little annoying mistakes ... of others

Since i am a beginner here are some of the mistakes i made: (to be continued for sure):
forget "#" for a comment, unfortunately at the same line as i try to use a new function searching the syntax error
missing ";" at the end of the line. missing closing "}"
Defining variables like $count and try to use variable $cont some lines down (and searching the typo for minutes ;-)).

Maybe i should use Padre. http://padre.perlide.org/ MH
  • Comment on Re: Little annoying mistakes ... of others

Replies are listed 'Best First'.
Re^2: Little annoying mistakes ... of others
by ikegami (Patriarch) on Dec 08, 2008 at 00:15 UTC

    Defining variables like $count and try to use variable $cont some lines down (and searching the typo for minutes ;-)).

    use strict; will finds those immediately.

      Yes normally i do, but i took a example (afair regarding while loop from Lama Book) which was modified, and it didnt run first cause there seemed to be a problem with a variable and the "use strict;" so i turned it off ;-), i could list the example as soon as i find it in the book again

      Update: My fault. I noticed that use strict; and the declaration e.g. with "my" is introduced later in another chapter so i was not supposed to use strict; at all in this example (in chapter 3) of the book, i didnt know how to "declare" the variable so i uncommented use strict; for a quick and dirty solution. /Update: MH
        Bad choice. Silencing errors doesn't make them go away.
Re^2: Little annoying mistakes ... of others
by GrandFather (Saint) on Dec 08, 2008 at 00:21 UTC
Re^2: Little annoying mistakes ... of others
by szabgab (Priest) on Dec 28, 2008 at 19:31 UTC
    I appended your comments to the ticket of Padre.

    I'd be glad to get clarifications, or more such annoyances!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found