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

Re: Adding a TAB after a certain ammount of characters

by BillKSmith (Chaplain)
on Apr 17, 2013 at 02:42 UTC ( #1029042=note: print w/ replies, xml ) Need Help??


in reply to Adding a TAB after a certain ammount of characters

The template for the function unpack is a perfect match to your description of the problem.

use strict; use warnings; my $template = "A17A6A31A3A3A*"; while (my $line = <DATA>) { print join("\t", unpack($template, $line)); } __DATA__ 2013020400000000006810083610022013068100200220130688000200494;
Bill


Comment on Re: Adding a TAB after a certain ammount of characters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2014-12-18 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (49 votes), past polls