Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: script not working

by ww (Archbishop)
on Dec 27, 2012 at 13:06 UTC ( #1010524=note: print w/replies, xml ) Need Help??


in reply to script not working

Aside from issues already noted, you're processing the wrong element of the array, @lines1.

Array elements start at ZERO, not one.

Update: For clarity (Apologies for the late update and despite upvotes already cast), the "wrong element" problem is in Ln 3 of the OP, at $lines1[2] and is unrelated to the name of the array, which was provided for (unnecessary?) identification.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010524]
help
Chatterbox?
[choroba]: I thought it would be something like "use strict and warnings"
LanX "use strict and warnings" or ... club!
[hippo]: That is the first rule of Basic Debugging Checklist Club
[Eily]: choroba perl -e "use strict and warnings" is a syntax error though :/
[shmem]: choroba: the "and" extension for a "use" expression would be very nifty, indeed
[shmem]: e.g. use Foo and Bar; - use Bar.pm if loading Foo.pm succeeds; and use Foo or Bar; - load Bar.pm if loading Foo.pm fails

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-11-21 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (306 votes). Check out past polls.

    Notices?