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

Splitting a large file into smaller files according to indexes

by cryptoperl (Novice)
on Apr 05, 2018 at 16:05 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found