Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 contemplating the Monastery: (4)
As of 2014-12-21 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls