Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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 exploiting the Monastery: (1)
As of 2018-02-22 21:00 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (299 votes). Check out past polls.