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

Re^5: Mapping & Hash Issues

by Anonymous Monk
on Mar 29, 2017 at 17:51 UTC ( #1186410=note: print w/replies, xml ) Need Help??

in reply to Re^4: Mapping & Hash Issues
in thread Mapping & Hash Issues

First, <code> tags are easy to use. When you're entering your post, type something like this:
for my $i (1 .. 10) { print "And a $_,\n"; }

And it will come out looking nice. If you leave off the <code> and </code>, it will be all jumbled together and people will yell at you. Also, instead of typing a row of equal signs like you've been doing, you can instead use <hr>, which stands for horizontal rule.

Second, as runrig says, there's probably something weird in your input file. Try looking at line 1840. Try making a smaller input file to make testing easier.

Replies are listed 'Best First'.
Re^6: Mapping & Hash Issues
by Anonymous Monk on Mar 29, 2017 at 17:58 UTC
    The record number (1840) is inaccurate because it's counting the map file as well. You might want to put this line just above the start of the second while loop:
    $csv = Text::CSV->new({ auto_diag=>1, binary=>1, eol=>"\n" });
    (Yes, that's almost a copy of a previous line, but note that the my is missing.)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-02-04 02:35 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (30 votes). Check out past polls.