Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to divide a line from a text file into 8 digit chunks

by balakrishnan (Monk)
on Feb 24, 2009 at 10:40 UTC ( #745956=note: print w/ replies, xml ) Need Help??


in reply to How to divide a line from a text file into 8 digit chunks

You might be the interested in the following.

open FH,"./input.txt"; while(<FH>) { @arr = ($_ =~ m/.{1,8}/g); print join "***\n",@arr; }


Comment on Re: How to divide a line from a text file into 8 digit chunks
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-18 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (108 votes), past polls