Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^6: Cannot work on second file after reading first file.

by sn1987a (Friar)
on Feb 28, 2014 at 18:57 UTC ( #1076597=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Cannot work on second file after reading first file.
in thread Cannot work on second file after reading first file.

In my testing, $csv->eof did not return true even after trying a second get_line (According to the documentation is does not return true until after an attempt to read past the EOF.)

In any event the cause was a change in global state in open_po: $/ was being set to undef. See Re: Cannot work on second file after reading first file.


Comment on Re^6: Cannot work on second file after reading first file.
Select or Download Code
Replies are listed 'Best First'.
Re^7: Cannot work on second file after reading first file.
by davido (Archbishop) on Feb 28, 2014 at 19:32 UTC

    Good work.


    Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-02-11 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (360 votes), past polls