Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Splitting a large file into smaller files according to indexes

by shmem (Chancellor)
on Apr 06, 2018 at 08:43 UTC ( #1212408=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %fh;
    while ( my $line = <$FH> ) {
    ...
        }
    }
    close $fh{$_} for keys %fh; # close all files
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-11-26 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?