Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Adding a TAB after a certain ammount of characters

by BillKSmith (Priest)
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

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 cooling their heels in the Monastery: (11)
As of 2016-09-27 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (506 votes). Check out past polls.