develooper Front page | perl.beginners | Postings from December 2002

Broken Pipe on Input?

Thread Next
Balint, Jess
December 20, 2002 12:11
Broken Pipe on Input?
Message ID:
Hi all. Can anybody tell me why I get a broken pipe on the following? I just
can figure it out. Thanks.


# Get all possible states from the files
open( STATES, "sort $hotline  |" )
        or cust_die( "Cannot open files to get states
($hotline,$newtofile,$newmover): $!\n" );
        while( <STATES> ) {
                # Recode missing
#               if( m/^$/ ) { $_ = "(blank)"; }
                push @states, $_;
close( STATES );

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About