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

Re^2: split line from one point

by Anonymous Monk
on Oct 19, 2011 at 12:29 UTC ( #932379=note: print w/replies, xml ) Need Help??

in reply to Re: split line from one point
in thread split line from one point

thanks, i have this: read line <> on closed file handle IN at line 4.

Replies are listed 'Best First'.
Re^3: split line from one point
by moritz (Cardinal) on Oct 19, 2011 at 12:36 UTC
    That means that the first open() call failed. Either use autodie; in the beginning, or write your calls as
    open my $IN, '<', 'transaction' or die "Cannot open 'transaction' for +reading: $!"; ... while (<$IN>) { ... }

    (And adapt the code for the second file accordingly).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932379]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2018-06-22 18:02 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.