Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to get rid of the errors in my perl script

by Ratazong (Monsignor)
on Aug 01, 2012 at 07:19 UTC ( #984717=note: print w/replies, xml ) Need Help??


in reply to How to get rid of the errors in my perl script

Hi!

To get rid of the errors, read the error-messages.

  • line 11: you use $line[$i], but you have defined $line as a scalar (not an array)
  • line 11: you use $i, but have never defined it ... (hint: and you don't need it)
  • line 15: a syntax error is often caused by a missing semicolon the line before
  • line 15: often error-messages are created due to errors before ... so solve the first three errors and check if this one prevails
HTH, Rata

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984717]
help
Chatterbox?
[marto]: believe in derp coin
[Corion]: Oh - I see ...
[LanX]: like http://cb60. datenzoo.de/:// perlmonks.org/ index.pl?node_id= 1215217
[Discipulus]: username links i bet
[Corion]: (also, let me recommend https://mini-cb60. datenzoo.de/ over that, as it has https :)
[LanX]: all links
[Corion]: I guess I should make the certificate valid for both hostnames
[LanX]: and broken links ;p
Corion wonders about how/where mini-cb60 (re)writes the links ...
[Discipulus]: base_url ?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2018-05-25 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?