Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 split.pl line 4.


Comment on Re^2: split line from one point
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-09-16 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (53 votes), past polls