Re: a question about pack

2010-08-23 Thread Albert Q
2010/8/22 Uri Guttman : >> "AQ" == Albert Q writes: > >  AQ> 2010/8/22 Uri Guttman >  >> >  >> > "AQ" == Albert Q writes: >  >> >  >> a quick comment. pack is most likely not a beginner issue. i am sure you >  >> will get help here but think about better forums for asking about >  >> pac

Re: a question about pack

2010-08-23 Thread Albert Q
2010/8/22 Dr.Ruud : > On 2010-08-22 13:16, Albert Q wrote: > >> pack '(H*)*', @values   will get the correct result. > > Now go and read perlpacktut a few times. This problem is documented in perlpacktut clearly. Thank you. > -- > Ruud > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.

Re: a question about pack

2010-08-22 Thread Uri Guttman
> "AQ" == Albert Q writes: AQ> 2010/8/22 Uri Guttman >> >> > "AQ" == Albert Q writes: >> >> a quick comment. pack is most likely not a beginner issue. i am sure you >> will get help here but think about better forums for asking about >> pack. there are plenty. pack is po

Re: a question about pack

2010-08-22 Thread Dr.Ruud
On 2010-08-22 13:16, Albert Q wrote: pack '(H*)*', @values will get the correct result. Now go and read perlpacktut a few times. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: a question about pack

2010-08-22 Thread Albert Q
2010/8/22 Uri Guttman > > > "AQ" == Albert Q writes: > > a quick comment. pack is most likely not a beginner issue. i am sure you > will get help here but think about better forums for asking about > pack. there are plenty. pack is powerful and sometimes dark magic even > to experienced perl

Re: a question about pack

2010-08-22 Thread Uri Guttman
> "AQ" == Albert Q writes: a quick comment. pack is most likely not a beginner issue. i am sure you will get help here but think about better forums for asking about pack. there are plenty. pack is powerful and sometimes dark magic even to experienced perl hackers (i know on very high level h

a question about pack

2010-08-22 Thread Albert Q
Hi I have a text file containing hex strings such as: 12 34 56 78 90 ab cd ef now I want to change these hex strings to sequence of bytes with the relative value of 0x12 0x34 0x56 bellow are my codes use strict; use warnings; sub proc_file { my ($in, $out) = @_; open my $fin, '<', $