Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 exploiting the Monastery: (13)
As of 2014-10-22 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (117 votes), past polls