I am perl developer. please let me know how to parse binary files. The binary file is created using c code. In unpack function which templae needs to use? Hi marshall, The data looks to me like, since binary not human readable.
  9@bB  8H‹1 fi FJ@*@ d@@ .raX&\hÈ2*]G@GR,yhS,hG >4P, +];~ @Ao@W KC@( @ $zs'}1S~ \"U* +1*+ v!‹cR&M``{J#i2]0  06 ,- %/n: +H'ϗX:6 B7eii&[.pzTM\%K@0 M6Z?5B0$$ I%8 +ڂw@%)~\Y ':^_*X+qqaXQ 4 ` 2\ @ޅbT*fY+qQ 3 h@63P$ BXB2hp ]e5g d + Wp :?>dgv'}.uܐ9x ,KV b@ `w}]x -@ bB E_ܸ1Vr& ԟ %",ј~x 'mi+% `BPyy zx 8xMkj\B-YU !,XA4 [ +D-e\-qaAa/ 22 ਖ ѐA{.\-0@ cGXͺU\*N]. AޔE;{e U j͡]B. =@F# 1`B6lmPx ĵEc1 ›AɀP+D% ֽz^.Y +z"^QwCh,q× *B ąAR+ Frfk5O_B/ +gLEѻv%2 `u_yĥH4lNR>O +h J:8@zx=Uk` AtXQ0 P`7< TrI +pԀ< c ҉ B\:qX 9q3`"AxdQa-8a8h1VČȆ8x2fqǰ# +EŽ\Y/d A lXÊwLAE 9$(2y ɝ'p`@ >`bEdb ƈzR]A y Dt (A " Abr(E3# "0YD"G|B]|I x'1/b=#‹)+J ̌>A-F@c#46.]$w S#X6@  _(bP879Q%ŧ6 D A@ |S9u=8 @ (#JRhi) ,H}f EPdFAħdB2X </Ì"k +8SE*`4טG, @t6rQ8aA~tUP PV E̔BJP IFGpT 7 /.N'.8f d @E$ޥ +%54 ^Ę+v"b  lwK/SJ(6`,h<;Zj#Dw3bH@Cr + # U 7'֦':zPϼ4)$E.A@wehuKS`Gq[E& ++4W|hf"? fL39nukr2Re`r}\{‹S2G<Oz@! +2!0nƮ/0B‹4 2 Y`i)iLRF:ӣҶ=HM)(v4 |x4Rq +O'"}]‹`"ȯ-̹/Ŝ a X[MS N +]9 )nN'@ N (sjlND]y*(; ٨#A(`d q6֑"ʴ‹ +h9("Fql vH fR *jP j1,aS +‹ @+HS›ј`{Fu hIhbOFawh%u}i;{: g +Ԍ i zx 9‹ 6`s# <`DNFts)*@ SnIO +nN!#zh7È 5#A9B :&AK@k$›! p@f +8Y (A1V!Tl)h PmD3gG%` /B9{% 3r@~o{ %p + @"G+#0'0%>H "21 ,XȐ ̀&b PX W f32 X~ + T% 6 ME;؃A8 iC"H8$5$ 6Z'TxV(z`kG| mXː +[Dp5* r~R 9@ s~_#]x05% h77ISL3  +uwSB~X SuJcA7  : y㇦( +{R % ǘ>S[Q>s~0K_x%  n{Hn8P'XP&19 %ur)04#s ԏא%0 AA}Wb)\R|P %O- \ e?,+ ~IxW Pp&(- +> I‹;$I%` X1‹D`Ȏ$i%p Y x];A;XD‹hg^H cY:3>S%X:H)-1% R qePXYcJ85P 9Ģ({z#9Y   `.?09!@ ># +]y˜;P' .>Qg炖% cHFxDh7+1% A34{M3G`jIYP7W x#2)% |BSBDzI +TK7%QISy5U(4 :)1;)S!pΘ|`d&J_X%0- / zIh989P䰉\7 C ~ .a @0%1|" G`J‹' +!AY e z ft-!tqQ kZ X*rJ"`shG!‹1@q:jJ[gs\) `:w%fJ + Z`q`%a:/ 4vt;e* 6 Z ǚʬ +K$X.Ŋ (* jpsxzY:@$b`}cj + "Э\btWJz ;u1‹ \z˕`  Z~K0a^ᬏ >#R e e`M  0 X X zs @۫ E{g|: 9U_1R|R9 cĢ-  .eT4np JKuRۤ- @ +'GSUa ˮi;  @ ϪK/ʺ\9+;/; ;% ?8$ +@ noJ,@O +@%z?Ň%P1‹ &s›2{`#sؾ%`%әƂy~› +;%p[XDnɕ›_%u@W~‹ ~\逇0  +!~-\ꐀ\QʞW0w0 %v|P/D!K%hkw +J! 8_\H Jl(PAs%u ģ='$H% ctp +WNJb|' PP Byte Field Code 1 - 11 Record header 12 Type of activation (1) BIN 13 Type of message (2) BIN 14 - 19 Name of the process EBCDIC 20 - 25 Name of the command EBCDIC 26 Type of terminal (3) BIN 27 Address of terminal BIN 28 - n Complementary message EBCDIC

In reply to how to extract original string from binary files? by swapy345

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.