Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Array Manipulation

by Corion (Pope)
on Oct 08, 2013 at 09:03 UTC ( #1057383=note: print w/replies, xml ) Need Help??

in reply to Re: Array Manipulation
in thread Array Manipulation

The detection of the real error location is not always precise (and it unfortunately cannot be). When you are looking at an obviously valid construct and Perl still insists on finding a fault there, look at the preceding statements - most likely it's a missing semicolon there that "extends" that statement further and leads to an error somewhere further down the code.

In your case, it's a missing semicolon in the statement right before your for statement:

my @files= <*.in>

Replies are listed 'Best First'.
Re^3: Array Manipulation
by Jalcock501 (Sexton) on Oct 08, 2013 at 09:06 UTC
    Hi Corion

    You know what... I literally spotted that just before reading this post, feel like an absolute muppet.

    Thanks for your help mate.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057383]
[shmem]: saying "biking itself isn't that much, but getting up and down - hell!"
[shmem]: up and down: on and off the bike, of course

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-06-25 20:16 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (570 votes). Check out past polls.