Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Splitting a large file into smaller files according to indexes

by cryptoperl (Novice)
on Apr 05, 2018 at 16:05 UTC ( #1212354=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    bos-mp96h:~ jvx$ head asgn.txt  
    ra_uuid: a37bbde8-36ba-11e8-a697-00e081ea0e98
    ...
    mpg=2 mrule=140 reg=7989 score=10625 rank=0 perc=100 mp_demand=40
    mpg=3 mrule=150 reg=7989 score=0 rank=0 perc=100 mp_demand=20
    mpg=4 mrule=150 reg=7989 score=10625 rank=0 perc=100 mp_demand=40
    
  2. or download this
    #! /usr/bin/perl -w
    use strict;
    ...
    close($FH);
    close($OUT);
    
  3. or download this
    bos-mp96h:~ jvx$ ./partition_file.pl asgn.txt  
    Can't use string ("00000140") as a symbol ref while "strict refs" in u
    +se at ./partition_file.pl line 26, <$FH> line 6.
    

Log In?
Username:
Password:

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

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

    No recent polls found

    Notices?