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

Re: reading the 5th element from file doesn't work.

by AnomalousMonk (Canon)
on Apr 24, 2013 at 18:49 UTC ( #1030484=note: print w/ replies, xml ) Need Help??

in reply to reading the 5th element from file doesn't work.

... what could be the issue here.

Allow Perl to suggest what the issue might be by using the warnings pragma, which would have warned you that  $string[4] was undefined (and if you're a beginner, also diagnostics for more verbose suggestions). In addition, I would strongly suggest using the strict pragma to disallow certain practices that experience has shown to be problematic, e.g., use of variables that have not been pre-declared. So:
    use strict;
    use warnings;
    use diagnostics;  # when you are desperate

Comment on Re: reading the 5th element from file doesn't work.
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2015-11-28 23:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls